diff --git "a/val.jsonl" "b/val.jsonl" new file mode 100644--- /dev/null +++ "b/val.jsonl" @@ -0,0 +1,4800 @@ +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(type, salary, date, name)\n projects(code, level, amount, date)\nTask: Retrieve value from customers whose code is found in projects rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "projects", "outer_alias": "cust", "inner_alias": "prj", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00000", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(value, salary, status, id)\n items(id, level, status, value)\nTask: Find salary from products where a matching record exists in items with the same level.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "items", "outer_alias": "prod", "inner_alias": "lne", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00001", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(salary, date, status, value)\n managers(id, name, salary, amount)\nTask: Retrieve amount from accounts with amount above the MAX(salary) of managers rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE amount > (\n SELECT MAX(salary) FROM managers AS mgr\n WHERE mgr.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "managers", "outer_alias": "acct", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00002", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(date, code, id, type)\n orders(status, level, amount, code)\nTask: Retrieve value from projects whose id is found in orders rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE id IN (\n SELECT id FROM orders AS ord\n WHERE ord.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00003", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(value, type, date, code)\n schedules(date, status, id, level)\nTask: Find value from requests where amount exceeds the total value from schedules for the same level.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE amount > (\n SELECT SUM(value) FROM schedules AS schd\n WHERE schd.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "schedules", "outer_alias": "ordr", "inner_alias": "schd", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00004", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(amount, value, salary, code)\n branches(type, date, status, name)\nTask: Retrieve name from customers with value above the MAX(salary) of branches rows sharing the same id.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE value > (\n SELECT MAX(salary) FROM branches AS brc\n WHERE brc.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "branches", "outer_alias": "cust", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00005", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(date, status, amount, type)\n items(level, value, id, date)\nTask: Select value from schedules where level exists in items for the same type.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM items AS lne\n WHERE lne.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00006", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(date, amount, code, salary)\n customers(date, id, value, level)\nTask: Find value from shipments where value exceeds the average value from customers for the same level.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE value > (\n SELECT AVG(value) FROM customers AS cust\n WHERE cust.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00007", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(type, code, level, id)\n accounts(level, salary, status, type)\nTask: Select code from requests where status exists in accounts for the same status.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM accounts AS acct\n WHERE acct.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "accounts", "outer_alias": "ordr", "inner_alias": "acct", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00008", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(code, amount, name, salary)\n products(status, type, date, id)\nTask: Find salary from transactions where a matching record exists in products with the same id.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "salary", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00009", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(code, salary, level, id)\n customers(salary, date, name, id)\nTask: Retrieve amount from managers with amount above the AVG(salary) of customers rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE amount > (\n SELECT AVG(salary) FROM customers AS cust\n WHERE cust.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "customers", "outer_alias": "mgr", "inner_alias": "cust", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00010", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, salary, date, type)\n accounts(name, amount, code, id)\nTask: Find code from regions where salary exceeds the maximum salary from accounts for the same status.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE salary > (\n SELECT MAX(salary) FROM accounts AS acct\n WHERE acct.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "accounts", "outer_alias": "rgn", "inner_alias": "acct", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00011", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(type, status, code, amount)\n staff(name, salary, code, level)\nTask: Retrieve amount from invoices whose type is found in staff rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "staff", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00012", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(level, salary, amount, code)\n regions(id, level, amount, type)\nTask: Find id from customers where a matching record exists in regions with the same type.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "id", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00013", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(code, name, amount, date)\n requests(level, status, id, salary)\nTask: Retrieve salary from managers with salary above the SUM(value) of requests rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE salary > (\n SELECT SUM(value) FROM requests AS ordr\n WHERE ordr.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00014", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(value, id, amount, code)\n shipments(level, salary, status, value)\nTask: Find name from branches where a matching record exists in shipments with the same id.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "shipments", "outer_alias": "brc", "inner_alias": "shp", "proj_col": "name", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00015", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(amount, id, date, level)\n managers(code, value, level, amount)\nTask: Retrieve value from shipments that have at least one corresponding entry in managers sharing the same status.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "managers", "outer_alias": "shp", "inner_alias": "mgr", "proj_col": "value", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00016", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(date, status, value, name)\n accounts(type, name, value, status)\nTask: Select id from orders where id exists in accounts for the same status.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE id IN (\n SELECT id FROM accounts AS acct\n WHERE acct.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "accounts", "outer_alias": "ord", "inner_alias": "acct", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00017", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(name, salary, date, amount)\n customers(name, salary, status, id)\nTask: Retrieve name from regions with value above the MAX(salary) of customers rows sharing the same code.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE value > (\n SELECT MAX(salary) FROM customers AS cust\n WHERE cust.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "customers", "outer_alias": "rgn", "inner_alias": "cust", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00018", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(date, id, salary, status)\n employees(level, status, type, salary)\nTask: Retrieve id from transactions with salary above the AVG(amount) of employees rows sharing the same status.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE salary > (\n SELECT AVG(amount) FROM employees AS emp\n WHERE emp.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00019", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(amount, date, level, id)\n shipments(id, name, type, amount)\nTask: Find value from regions where a matching record exists in shipments with the same type.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "shipments", "outer_alias": "rgn", "inner_alias": "shp", "proj_col": "value", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00020", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(code, status, id, type)\n products(amount, salary, date, id)\nTask: Find name from regions where a matching record exists in products with the same code.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "name", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00021", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(id, amount, type, code)\n requests(type, name, salary, level)\nTask: Find code from orders where a matching record exists in requests with the same level.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "requests", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00022", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(level, type, value, date)\n customers(code, amount, level, type)\nTask: Retrieve id from managers that have at least one corresponding entry in customers sharing the same status.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "customers", "outer_alias": "mgr", "inner_alias": "cust", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00023", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(type, status, code, amount)\n regions(salary, id, code, date)\nTask: Find value from transactions where level appears in regions entries with matching level.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00024", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(id, amount, date, level)\n managers(id, salary, code, level)\nTask: Select code from sales where id exists in managers for the same code.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00025", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(name, value, level, amount)\n managers(status, type, date, id)\nTask: Retrieve amount from tasks whose level is found in managers rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "managers", "outer_alias": "tsk", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00026", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(value, amount, salary, name)\n staff(value, level, salary, amount)\nTask: Find id from items where amount exceeds the maximum salary from staff for the same type.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE amount > (\n SELECT MAX(salary) FROM staff AS empl\n WHERE empl.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "staff", "outer_alias": "lne", "inner_alias": "empl", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00027", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(name, status, amount, salary)\n orders(date, code, salary, name)\nTask: Find code from transactions where a matching record exists in orders with the same code.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "orders", "outer_alias": "txn", "inner_alias": "ord", "proj_col": "code", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00028", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(code, status, id, type)\n schedules(code, level, status, amount)\nTask: Retrieve name from employees with value above the MIN(salary) of schedules rows sharing the same status.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE value > (\n SELECT MIN(salary) FROM schedules AS schd\n WHERE schd.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "schedules", "outer_alias": "emp", "inner_alias": "schd", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00029", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(status, id, name, type)\n tasks(salary, status, level, date)\nTask: Select amount from items where id exists in tasks for the same level.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE id IN (\n SELECT id FROM tasks AS tsk\n WHERE tsk.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "tasks", "outer_alias": "lne", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00030", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(value, date, status, name)\n sales(salary, value, name, level)\nTask: Find name from items where a matching record exists in sales with the same id.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "sales", "outer_alias": "lne", "inner_alias": "sale", "proj_col": "name", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00031", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(status, name, value, level)\n requests(status, id, amount, type)\nTask: Select name from invoices where id exists in requests for the same status.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM requests AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "requests", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00032", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(level, status, date, salary)\n departments(value, type, id, code)\nTask: Find salary from invoices where salary exceeds the average value from departments for the same level.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE salary > (\n SELECT AVG(value) FROM departments AS dept\n WHERE dept.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "departments", "outer_alias": "inv", "inner_alias": "dept", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00033", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(salary, value, id, level)\n managers(salary, code, status, name)\nTask: Retrieve salary from schedules whose level is found in managers rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00034", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(value, level, status, date)\n sales(level, value, code, type)\nTask: Select name from schedules where status exists in sales for the same status.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "sales", "outer_alias": "schd", "inner_alias": "sale", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00035", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(salary, status, name, code)\n items(type, date, code, id)\nTask: Find name from staff where a matching record exists in items with the same id.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "items", "outer_alias": "empl", "inner_alias": "lne", "proj_col": "name", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00036", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(amount, status, salary, type)\n items(id, code, salary, type)\nTask: Retrieve salary from categories with amount above the COUNT(amount) of items rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE amount > (\n SELECT COUNT(amount) FROM items AS lne\n WHERE lne.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00037", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(type, value, code, level)\n requests(date, value, type, name)\nTask: Find id from sales where value exceeds the average value from requests for the same level.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE value > (\n SELECT AVG(value) FROM requests AS ordr\n WHERE ordr.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "requests", "outer_alias": "sale", "inner_alias": "ordr", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00038", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(status, name, code, type)\n employees(name, level, salary, status)\nTask: Find id from customers where salary exceeds the count of value from employees for the same level.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE salary > (\n SELECT COUNT(value) FROM employees AS emp\n WHERE emp.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00039", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(name, code, amount, value)\n projects(value, code, salary, name)\nTask: Retrieve value from invoices whose id is found in projects rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "projects", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00040", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(level, value, type, id)\n managers(name, amount, date, code)\nTask: Find value from staff where a matching record exists in managers with the same status.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "managers", "outer_alias": "empl", "inner_alias": "mgr", "proj_col": "value", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00041", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(status, level, value, id)\n branches(status, value, date, code)\nTask: Find salary from departments where a matching record exists in branches with the same type.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "branches", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00042", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(id, level, date, type)\n items(level, amount, status, type)\nTask: Select id from projects where level exists in items for the same type.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE level IN (\n SELECT level FROM items AS lne\n WHERE lne.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "items", "outer_alias": "prj", "inner_alias": "lne", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00043", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(code, status, value, salary)\n shipments(type, date, salary, id)\nTask: Retrieve id from categories with salary above the MIN(value) of shipments rows sharing the same status.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE salary > (\n SELECT MIN(value) FROM shipments AS shp\n WHERE shp.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "shipments", "outer_alias": "catg", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00044", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(name, code, id, type)\n categories(id, value, salary, amount)\nTask: Retrieve name from shipments that have at least one corresponding entry in categories sharing the same type.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "categories", "outer_alias": "shp", "inner_alias": "catg", "proj_col": "name", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00045", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(salary, amount, value, date)\n employees(name, date, status, type)\nTask: Select code from transactions where type exists in employees for the same type.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00046", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(salary, date, id, type)\n orders(date, code, id, salary)\nTask: Find id from sales where type appears in orders entries with matching level.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE type IN (\n SELECT type FROM orders AS ord\n WHERE ord.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "orders", "outer_alias": "sale", "inner_alias": "ord", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00047", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(status, salary, name, type)\n tasks(code, level, id, name)\nTask: Retrieve amount from branches with value above the MAX(amount) of tasks rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE value > (\n SELECT MAX(amount) FROM tasks AS tsk\n WHERE tsk.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00048", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(value, id, salary, status)\n requests(type, name, level, status)\nTask: Find amount from transactions where a matching record exists in requests with the same status.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "requests", "outer_alias": "txn", "inner_alias": "ordr", "proj_col": "amount", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00049", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(code, type, level, value)\n schedules(value, code, name, amount)\nTask: Retrieve value from branches with amount above the SUM(salary) of schedules rows sharing the same code.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE amount > (\n SELECT SUM(salary) FROM schedules AS schd\n WHERE schd.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "schedules", "outer_alias": "brc", "inner_alias": "schd", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00050", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(id, status, type, amount)\n employees(status, name, value, code)\nTask: Find id from projects where amount exceeds the total salary from employees for the same id.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE amount > (\n SELECT SUM(salary) FROM employees AS emp\n WHERE emp.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "employees", "outer_alias": "prj", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00051", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(status, value, type, date)\n transactions(type, amount, status, date)\nTask: Retrieve name from managers with amount above the MAX(salary) of transactions rows sharing the same code.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE amount > (\n SELECT MAX(salary) FROM transactions AS txn\n WHERE txn.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "transactions", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00052", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(level, date, status, amount)\n shipments(date, type, status, value)\nTask: Retrieve value from orders with amount above the COUNT(value) of shipments rows sharing the same level.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE amount > (\n SELECT COUNT(value) FROM shipments AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "shipments", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00053", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(date, code, level, amount)\n schedules(level, type, status, name)\nTask: Find name from invoices where a matching record exists in schedules with the same status.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "name", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00054", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(level, name, salary, status)\n sales(salary, type, status, id)\nTask: Find value from managers where a matching record exists in sales with the same status.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "sales", "outer_alias": "mgr", "inner_alias": "sale", "proj_col": "value", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00055", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(id, amount, date, value)\n regions(amount, status, value, id)\nTask: Find name from branches where a matching record exists in regions with the same id.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "regions", "outer_alias": "brc", "inner_alias": "rgn", "proj_col": "name", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00056", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(level, salary, id, value)\n requests(id, code, salary, status)\nTask: Find salary from staff where a matching record exists in requests with the same id.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "requests", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00057", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(amount, status, date, value)\n products(amount, level, date, status)\nTask: Find code from orders where value exceeds the count of amount from products for the same status.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE value > (\n SELECT COUNT(amount) FROM products AS prod\n WHERE prod.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "products", "outer_alias": "ord", "inner_alias": "prod", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00058", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(type, status, id, salary)\n projects(status, salary, type, id)\nTask: Retrieve id from customers that have at least one corresponding entry in projects sharing the same code.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "projects", "outer_alias": "cust", "inner_alias": "prj", "proj_col": "id", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00059", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(salary, value, level, date)\n invoices(salary, level, date, status)\nTask: Retrieve value from products whose id is found in invoices rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE id IN (\n SELECT id FROM invoices AS inv\n WHERE inv.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "invoices", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00060", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(code, salary, type, level)\n schedules(type, status, id, level)\nTask: Find id from employees where a matching record exists in schedules with the same type.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "schedules", "outer_alias": "emp", "inner_alias": "schd", "proj_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00061", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(salary, date, value, code)\n staff(salary, type, amount, value)\nTask: Retrieve value from items whose status is found in staff rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "staff", "outer_alias": "lne", "inner_alias": "empl", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00062", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(type, status, salary, level)\n categories(code, name, salary, type)\nTask: Retrieve code from items with value above the COUNT(amount) of categories rows sharing the same level.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE value > (\n SELECT COUNT(amount) FROM categories AS catg\n WHERE catg.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00063", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(value, amount, status, type)\n shipments(level, type, date, status)\nTask: Retrieve amount from transactions that have at least one corresponding entry in shipments sharing the same level.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "shipments", "outer_alias": "txn", "inner_alias": "shp", "proj_col": "amount", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00064", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(type, id, date, salary)\n tasks(salary, value, level, amount)\nTask: Find code from branches where salary exceeds the minimum value from tasks for the same level.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE salary > (\n SELECT MIN(value) FROM tasks AS tsk\n WHERE tsk.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00065", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(value, id, code, type)\n managers(code, status, value, name)\nTask: Select code from departments where status exists in managers for the same code.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "managers", "outer_alias": "dept", "inner_alias": "mgr", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00066", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(salary, level, value, status)\n orders(type, id, amount, salary)\nTask: Find code from accounts where value exceeds the maximum salary from orders for the same level.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE value > (\n SELECT MAX(salary) FROM orders AS ord\n WHERE ord.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "orders", "outer_alias": "acct", "inner_alias": "ord", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00067", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(salary, value, id, level)\n requests(date, name, level, code)\nTask: Find id from employees where a matching record exists in requests with the same status.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "requests", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00068", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(level, value, name, id)\n products(amount, date, id, value)\nTask: Find value from tasks where status appears in products entries with matching id.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "products", "outer_alias": "tsk", "inner_alias": "prod", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00069", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(date, value, code, type)\n projects(code, date, amount, id)\nTask: Retrieve value from categories with amount above the COUNT(value) of projects rows sharing the same code.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE amount > (\n SELECT COUNT(value) FROM projects AS prj\n WHERE prj.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "projects", "outer_alias": "catg", "inner_alias": "prj", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00070", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(code, salary, amount, level)\n transactions(level, id, amount, status)\nTask: Retrieve salary from tasks whose id is found in transactions rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE id IN (\n SELECT id FROM transactions AS txn\n WHERE txn.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "transactions", "outer_alias": "tsk", "inner_alias": "txn", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00071", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(date, code, amount, status)\n regions(status, amount, value, code)\nTask: Find name from sales where a matching record exists in regions with the same id.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "regions", "outer_alias": "sale", "inner_alias": "rgn", "proj_col": "name", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00072", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(name, type, code, status)\n items(name, id, code, salary)\nTask: Find code from projects where a matching record exists in items with the same id.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "items", "outer_alias": "prj", "inner_alias": "lne", "proj_col": "code", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00073", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(id, status, type, code)\n customers(amount, value, date, status)\nTask: Find salary from regions where a matching record exists in customers with the same type.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "customers", "outer_alias": "rgn", "inner_alias": "cust", "proj_col": "salary", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00074", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(id, amount, type, status)\n items(salary, level, name, status)\nTask: Retrieve name from regions whose code is found in items rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM items AS lne\n WHERE lne.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "items", "outer_alias": "rgn", "inner_alias": "lne", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00075", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(value, level, name, salary)\n staff(date, salary, value, code)\nTask: Retrieve name from shipments with salary above the MIN(amount) of staff rows sharing the same id.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE salary > (\n SELECT MIN(amount) FROM staff AS empl\n WHERE empl.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "staff", "outer_alias": "shp", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00076", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(value, status, id, salary)\n departments(salary, code, status, name)\nTask: Retrieve id from employees whose code is found in departments rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "departments", "outer_alias": "emp", "inner_alias": "dept", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00077", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(level, id, date, status)\n departments(value, amount, code, type)\nTask: Find value from categories where a matching record exists in departments with the same level.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "departments", "outer_alias": "catg", "inner_alias": "dept", "proj_col": "value", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00078", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(id, value, type, level)\n orders(code, type, date, name)\nTask: Find value from branches where a matching record exists in orders with the same code.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "orders", "outer_alias": "brc", "inner_alias": "ord", "proj_col": "value", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00079", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(name, code, amount, date)\n sales(amount, level, salary, name)\nTask: Find salary from accounts where a matching record exists in sales with the same status.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "sales", "outer_alias": "acct", "inner_alias": "sale", "proj_col": "salary", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00080", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(name, date, code, amount)\n schedules(value, date, code, id)\nTask: Retrieve code from departments whose id is found in schedules rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "schedules", "outer_alias": "dept", "inner_alias": "schd", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00081", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(amount, date, salary, type)\n invoices(name, status, code, amount)\nTask: Retrieve code from tasks that have at least one corresponding entry in invoices sharing the same code.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "invoices", "outer_alias": "tsk", "inner_alias": "inv", "proj_col": "code", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00082", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(id, level, amount, code)\n sales(type, amount, id, status)\nTask: Find salary from accounts where type appears in sales entries with matching status.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE type IN (\n SELECT type FROM sales AS sale\n WHERE sale.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "sales", "outer_alias": "acct", "inner_alias": "sale", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00083", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(code, level, status, id)\n branches(amount, value, level, salary)\nTask: Retrieve name from invoices with value above the MAX(value) of branches rows sharing the same type.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE value > (\n SELECT MAX(value) FROM branches AS brc\n WHERE brc.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "branches", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00084", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(name, date, value, salary)\n schedules(date, salary, value, type)\nTask: Select value from departments where type exists in schedules for the same code.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "schedules", "outer_alias": "dept", "inner_alias": "schd", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00085", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(salary, name, code, date)\n branches(id, date, status, amount)\nTask: Find salary from tasks where code appears in branches entries with matching type.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "branches", "outer_alias": "tsk", "inner_alias": "brc", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00086", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(value, level, code, type)\n categories(amount, status, id, name)\nTask: Find value from shipments where salary exceeds the minimum amount from categories for the same id.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE salary > (\n SELECT MIN(amount) FROM categories AS catg\n WHERE catg.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "categories", "outer_alias": "shp", "inner_alias": "catg", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00087", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(salary, date, level, amount)\n regions(name, value, status, level)\nTask: Find salary from tasks where amount exceeds the maximum value from regions for the same code.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE amount > (\n SELECT MAX(value) FROM regions AS rgn\n WHERE rgn.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "regions", "outer_alias": "tsk", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00088", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(type, name, date, salary)\n orders(status, date, type, amount)\nTask: Find salary from managers where a matching record exists in orders with the same level.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "orders", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00089", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(amount, type, id, level)\n categories(salary, name, status, date)\nTask: Find amount from tasks where a matching record exists in categories with the same status.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "categories", "outer_alias": "tsk", "inner_alias": "catg", "proj_col": "amount", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00090", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(amount, type, level, id)\n departments(date, level, code, value)\nTask: Find name from categories where salary exceeds the count of value from departments for the same status.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE salary > (\n SELECT COUNT(value) FROM departments AS dept\n WHERE dept.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "departments", "outer_alias": "catg", "inner_alias": "dept", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00091", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(type, salary, code, amount)\n staff(code, value, level, amount)\nTask: Retrieve salary from projects with salary above the SUM(amount) of staff rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE salary > (\n SELECT SUM(amount) FROM staff AS empl\n WHERE empl.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "staff", "outer_alias": "prj", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00092", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(level, amount, type, date)\n customers(salary, amount, status, code)\nTask: Find value from categories where amount exceeds the minimum amount from customers for the same code.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE amount > (\n SELECT MIN(amount) FROM customers AS cust\n WHERE cust.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "customers", "outer_alias": "catg", "inner_alias": "cust", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00093", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(amount, name, salary, type)\n orders(id, value, level, code)\nTask: Retrieve id from items with amount above the AVG(value) of orders rows sharing the same type.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE amount > (\n SELECT AVG(value) FROM orders AS ord\n WHERE ord.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "orders", "outer_alias": "lne", "inner_alias": "ord", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00094", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(status, name, level, code)\n managers(id, type, date, status)\nTask: Select amount from employees where type exists in managers for the same status.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00095", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(amount, code, status, id)\n employees(salary, type, status, id)\nTask: Find salary from products where type appears in employees entries with matching code.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "employees", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00096", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(id, value, name, date)\n managers(code, amount, salary, level)\nTask: Retrieve salary from customers whose id is found in managers rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "managers", "outer_alias": "cust", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00097", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(date, level, value, type)\n categories(name, salary, value, level)\nTask: Select id from accounts where status exists in categories for the same type.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE status IN (\n SELECT status FROM categories AS catg\n WHERE catg.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "categories", "outer_alias": "acct", "inner_alias": "catg", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00098", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(date, id, amount, level)\n managers(level, salary, id, code)\nTask: Find name from tasks where value exceeds the average salary from managers for the same id.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE value > (\n SELECT AVG(salary) FROM managers AS mgr\n WHERE mgr.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "managers", "outer_alias": "tsk", "inner_alias": "mgr", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00099", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(salary, level, date, name)\n accounts(amount, code, date, type)\nTask: Retrieve id from tasks that have at least one corresponding entry in accounts sharing the same code.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "accounts", "outer_alias": "tsk", "inner_alias": "acct", "proj_col": "id", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00100", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(name, id, status, amount)\n managers(amount, salary, id, status)\nTask: Retrieve amount from branches that have at least one corresponding entry in managers sharing the same level.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "amount", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00101", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(name, amount, code, salary)\n products(type, status, value, id)\nTask: Find id from items where level appears in products entries with matching type.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "products", "outer_alias": "lne", "inner_alias": "prod", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00102", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(date, amount, status, salary)\n transactions(date, type, value, amount)\nTask: Find amount from schedules where id appears in transactions entries with matching status.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE id IN (\n SELECT id FROM transactions AS txn\n WHERE txn.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "transactions", "outer_alias": "schd", "inner_alias": "txn", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00103", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(value, status, id, name)\n managers(amount, value, id, name)\nTask: Retrieve salary from departments with amount above the SUM(salary) of managers rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE amount > (\n SELECT SUM(salary) FROM managers AS mgr\n WHERE mgr.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "managers", "outer_alias": "dept", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00104", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(name, level, id, value)\n staff(date, salary, type, amount)\nTask: Select salary from regions where type exists in staff for the same id.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "staff", "outer_alias": "rgn", "inner_alias": "empl", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00105", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(salary, date, type, id)\n employees(value, status, date, id)\nTask: Find name from regions where amount exceeds the count of salary from employees for the same id.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE amount > (\n SELECT COUNT(salary) FROM employees AS emp\n WHERE emp.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00106", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(type, level, id, code)\n shipments(value, date, name, status)\nTask: Retrieve amount from invoices with salary above the SUM(value) of shipments rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE salary > (\n SELECT SUM(value) FROM shipments AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00107", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(id, level, value, name)\n sales(amount, salary, id, value)\nTask: Find amount from transactions where level appears in sales entries with matching level.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM sales AS sale\n WHERE sale.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "sales", "outer_alias": "txn", "inner_alias": "sale", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00108", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(code, date, id, amount)\n sales(status, amount, value, level)\nTask: Find value from projects where a matching record exists in sales with the same id.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "sales", "outer_alias": "prj", "inner_alias": "sale", "proj_col": "value", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00109", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(status, date, level, name)\n items(name, status, id, type)\nTask: Find salary from products where code appears in items entries with matching id.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE code IN (\n SELECT code FROM items AS lne\n WHERE lne.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "items", "outer_alias": "prod", "inner_alias": "lne", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00110", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(type, amount, code, salary)\n regions(code, date, level, amount)\nTask: Retrieve name from sales whose id is found in regions rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "regions", "outer_alias": "sale", "inner_alias": "rgn", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00111", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(code, id, status, value)\n projects(id, type, name, amount)\nTask: Retrieve salary from customers that have at least one corresponding entry in projects sharing the same code.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "projects", "outer_alias": "cust", "inner_alias": "prj", "proj_col": "salary", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00112", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(status, name, type, level)\n categories(level, date, name, type)\nTask: Select amount from accounts where id exists in categories for the same status.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "categories", "outer_alias": "acct", "inner_alias": "catg", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00113", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(status, value, salary, date)\n managers(name, level, salary, amount)\nTask: Find value from customers where salary exceeds the maximum amount from managers for the same status.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE salary > (\n SELECT MAX(amount) FROM managers AS mgr\n WHERE mgr.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "managers", "outer_alias": "cust", "inner_alias": "mgr", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00114", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(salary, id, status, value)\n items(amount, id, value, name)\nTask: Retrieve name from requests with salary above the MIN(amount) of items rows sharing the same status.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE salary > (\n SELECT MIN(amount) FROM items AS lne\n WHERE lne.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00115", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(value, level, type, code)\n customers(id, code, value, salary)\nTask: Find salary from items where a matching record exists in customers with the same status.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "customers", "outer_alias": "lne", "inner_alias": "cust", "proj_col": "salary", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00116", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, value, date, salary)\n tasks(id, amount, code, salary)\nTask: Find code from shipments where id appears in tasks entries with matching type.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE id IN (\n SELECT id FROM tasks AS tsk\n WHERE tsk.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00117", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(amount, code, type, value)\n sales(code, type, salary, date)\nTask: Retrieve amount from invoices whose code is found in sales rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE code IN (\n SELECT code FROM sales AS sale\n WHERE sale.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "sales", "outer_alias": "inv", "inner_alias": "sale", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00118", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(code, amount, level, salary)\n employees(status, salary, level, type)\nTask: Select code from accounts where code exists in employees for the same level.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "employees", "outer_alias": "acct", "inner_alias": "emp", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00119", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(status, name, amount, value)\n customers(amount, type, status, date)\nTask: Select salary from departments where level exists in customers for the same type.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "customers", "outer_alias": "dept", "inner_alias": "cust", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00120", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(date, salary, type, name)\n orders(level, salary, code, amount)\nTask: Retrieve amount from employees with value above the MAX(salary) of orders rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE value > (\n SELECT MAX(salary) FROM orders AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "orders", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00121", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(id, value, status, salary)\n products(level, type, name, value)\nTask: Select value from customers where type exists in products for the same status.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE type IN (\n SELECT type FROM products AS prod\n WHERE prod.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "products", "outer_alias": "cust", "inner_alias": "prod", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00122", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(id, amount, value, level)\n regions(status, name, amount, salary)\nTask: Retrieve id from accounts that have at least one corresponding entry in regions sharing the same type.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "regions", "outer_alias": "acct", "inner_alias": "rgn", "proj_col": "id", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00123", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(value, code, id, level)\n branches(salary, level, status, code)\nTask: Retrieve salary from orders with value above the MIN(amount) of branches rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE value > (\n SELECT MIN(amount) FROM branches AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "branches", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00124", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(status, amount, code, id)\n categories(date, level, type, code)\nTask: Retrieve code from staff with amount above the MIN(salary) of categories rows sharing the same id.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE amount > (\n SELECT MIN(salary) FROM categories AS catg\n WHERE catg.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "categories", "outer_alias": "empl", "inner_alias": "catg", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00125", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(amount, name, value, level)\n tasks(code, date, value, status)\nTask: Select name from products where type exists in tasks for the same code.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "tasks", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00126", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(salary, amount, type, date)\n products(amount, status, id, level)\nTask: Retrieve salary from accounts that have at least one corresponding entry in products sharing the same id.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "salary", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00127", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(code, amount, name, salary)\n regions(date, id, name, level)\nTask: Retrieve value from managers whose code is found in regions rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "regions", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00128", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(date, name, amount, type)\n accounts(status, amount, code, name)\nTask: Retrieve id from tasks with amount above the MIN(value) of accounts rows sharing the same status.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE amount > (\n SELECT MIN(value) FROM accounts AS acct\n WHERE acct.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "accounts", "outer_alias": "tsk", "inner_alias": "acct", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00129", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(type, amount, name, status)\n projects(id, status, salary, amount)\nTask: Retrieve salary from orders that have at least one corresponding entry in projects sharing the same type.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "projects", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00130", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(level, type, value, id)\n tasks(id, name, salary, code)\nTask: Retrieve value from shipments whose type is found in tasks rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00131", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(type, id, level, amount)\n products(type, value, code, id)\nTask: Find value from employees where value exceeds the count of salary from products for the same type.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE value > (\n SELECT COUNT(salary) FROM products AS prod\n WHERE prod.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00132", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(amount, status, id, value)\n accounts(name, value, status, date)\nTask: Find amount from invoices where code appears in accounts entries with matching code.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00133", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(level, id, status, code)\n accounts(date, level, name, value)\nTask: Find salary from categories where a matching record exists in accounts with the same id.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "accounts", "outer_alias": "catg", "inner_alias": "acct", "proj_col": "salary", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00134", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(level, amount, id, name)\n categories(level, name, type, salary)\nTask: Find id from orders where level appears in categories entries with matching code.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "categories", "outer_alias": "ord", "inner_alias": "catg", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00135", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(value, level, name, id)\n requests(type, status, date, code)\nTask: Find salary from branches where salary exceeds the total value from requests for the same id.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE salary > (\n SELECT SUM(value) FROM requests AS ordr\n WHERE ordr.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "requests", "outer_alias": "brc", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00136", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(value, name, status, level)\n categories(type, level, id, value)\nTask: Retrieve code from staff that have at least one corresponding entry in categories sharing the same id.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "categories", "outer_alias": "empl", "inner_alias": "catg", "proj_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00137", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(level, status, amount, code)\n schedules(type, code, salary, level)\nTask: Retrieve code from departments that have at least one corresponding entry in schedules sharing the same id.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "schedules", "outer_alias": "dept", "inner_alias": "schd", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00138", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(salary, level, amount, name)\n projects(type, code, id, name)\nTask: Find amount from departments where code appears in projects entries with matching id.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "projects", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00139", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(value, status, name, amount)\n departments(level, status, amount, name)\nTask: Find id from transactions where amount exceeds the count of salary from departments for the same level.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE amount > (\n SELECT COUNT(salary) FROM departments AS dept\n WHERE dept.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "departments", "outer_alias": "txn", "inner_alias": "dept", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00140", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(date, amount, salary, name)\n requests(id, level, salary, code)\nTask: Find salary from employees where id appears in requests entries with matching code.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE id IN (\n SELECT id FROM requests AS ordr\n WHERE ordr.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "requests", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00141", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(type, id, status, amount)\n products(level, code, date, status)\nTask: Retrieve salary from staff with value above the SUM(salary) of products rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE value > (\n SELECT SUM(salary) FROM products AS prod\n WHERE prod.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "products", "outer_alias": "empl", "inner_alias": "prod", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00142", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(amount, code, status, type)\n managers(id, status, date, salary)\nTask: Find id from departments where a matching record exists in managers with the same id.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "managers", "outer_alias": "dept", "inner_alias": "mgr", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00143", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(date, id, code, name)\n accounts(amount, value, code, id)\nTask: Select amount from departments where code exists in accounts for the same level.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "accounts", "outer_alias": "dept", "inner_alias": "acct", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00144", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(value, level, status, date)\n branches(value, level, id, date)\nTask: Retrieve amount from staff whose type is found in branches rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE type IN (\n SELECT type FROM branches AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "branches", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00145", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(level, code, id, salary)\n invoices(amount, code, value, status)\nTask: Find id from transactions where a matching record exists in invoices with the same status.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "invoices", "outer_alias": "txn", "inner_alias": "inv", "proj_col": "id", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00146", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(code, amount, status, id)\n staff(name, date, type, level)\nTask: Find value from invoices where a matching record exists in staff with the same status.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "staff", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00147", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(amount, status, value, salary)\n branches(id, salary, amount, date)\nTask: Find name from requests where level appears in branches entries with matching id.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "branches", "outer_alias": "ordr", "inner_alias": "brc", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00148", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(id, salary, status, type)\n invoices(id, amount, name, code)\nTask: Retrieve name from departments that have at least one corresponding entry in invoices sharing the same status.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "invoices", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "name", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00149", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(date, salary, id, value)\n employees(status, id, value, code)\nTask: Retrieve value from invoices whose level is found in employees rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "employees", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00150", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(type, amount, id, name)\n regions(code, type, name, id)\nTask: Retrieve salary from products with amount above the MAX(amount) of regions rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE amount > (\n SELECT MAX(amount) FROM regions AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00151", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(amount, id, date, code)\n tasks(status, code, amount, date)\nTask: Select id from projects where code exists in tasks for the same status.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE code IN (\n SELECT code FROM tasks AS tsk\n WHERE tsk.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "tasks", "outer_alias": "prj", "inner_alias": "tsk", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00152", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(status, value, level, name)\n requests(amount, date, salary, value)\nTask: Find code from invoices where salary exceeds the minimum salary from requests for the same id.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM requests AS ordr\n WHERE ordr.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "requests", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00153", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(date, amount, value, id)\n customers(salary, status, type, value)\nTask: Select value from projects where type exists in customers for the same id.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "customers", "outer_alias": "prj", "inner_alias": "cust", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00154", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(status, date, id, level)\n regions(salary, code, level, value)\nTask: Select name from managers where type exists in regions for the same level.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM regions AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "regions", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00155", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(type, name, id, code)\n accounts(amount, date, name, level)\nTask: Find salary from regions where amount exceeds the count of salary from accounts for the same code.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE amount > (\n SELECT COUNT(salary) FROM accounts AS acct\n WHERE acct.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "accounts", "outer_alias": "rgn", "inner_alias": "acct", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00156", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(status, salary, level, date)\n accounts(code, value, level, amount)\nTask: Find salary from categories where amount exceeds the total amount from accounts for the same type.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE amount > (\n SELECT SUM(amount) FROM accounts AS acct\n WHERE acct.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "accounts", "outer_alias": "catg", "inner_alias": "acct", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00157", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(amount, status, value, id)\n customers(amount, date, level, code)\nTask: Retrieve name from staff with salary above the COUNT(salary) of customers rows sharing the same code.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE salary > (\n SELECT COUNT(salary) FROM customers AS cust\n WHERE cust.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "customers", "outer_alias": "empl", "inner_alias": "cust", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00158", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(value, name, id, status)\n employees(value, id, type, code)\nTask: Select amount from orders where status exists in employees for the same id.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00159", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(name, amount, level, code)\n products(date, id, value, salary)\nTask: Find value from accounts where a matching record exists in products with the same status.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "value", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00160", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(level, amount, type, value)\n departments(date, amount, type, status)\nTask: Retrieve amount from transactions with amount above the MAX(amount) of departments rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE amount > (\n SELECT MAX(amount) FROM departments AS dept\n WHERE dept.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "departments", "outer_alias": "txn", "inner_alias": "dept", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00161", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(id, date, name, status)\n transactions(status, id, value, date)\nTask: Find value from categories where a matching record exists in transactions with the same level.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "transactions", "outer_alias": "catg", "inner_alias": "txn", "proj_col": "value", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00162", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(level, date, code, name)\n staff(code, level, name, salary)\nTask: Find name from sales where value exceeds the total amount from staff for the same status.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE value > (\n SELECT SUM(amount) FROM staff AS empl\n WHERE empl.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "staff", "outer_alias": "sale", "inner_alias": "empl", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00163", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(level, date, amount, value)\n regions(status, name, salary, id)\nTask: Find salary from employees where value exceeds the maximum amount from regions for the same type.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE value > (\n SELECT MAX(amount) FROM regions AS rgn\n WHERE rgn.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "regions", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00164", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(value, type, name, amount)\n staff(date, salary, level, status)\nTask: Retrieve name from employees with salary above the MAX(value) of staff rows sharing the same code.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE salary > (\n SELECT MAX(value) FROM staff AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "staff", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00165", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(name, salary, status, type)\n departments(amount, salary, date, value)\nTask: Retrieve value from orders with amount above the MIN(amount) of departments rows sharing the same type.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE amount > (\n SELECT MIN(amount) FROM departments AS dept\n WHERE dept.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "departments", "outer_alias": "ord", "inner_alias": "dept", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00166", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(salary, status, type, value)\n products(type, salary, id, amount)\nTask: Find code from employees where value exceeds the minimum value from products for the same status.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE value > (\n SELECT MIN(value) FROM products AS prod\n WHERE prod.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00167", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(id, value, code, salary)\n departments(level, id, name, type)\nTask: Find salary from requests where a matching record exists in departments with the same type.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "departments", "outer_alias": "ordr", "inner_alias": "dept", "proj_col": "salary", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00168", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(level, salary, name, status)\n tasks(salary, name, amount, value)\nTask: Retrieve name from shipments with amount above the COUNT(salary) of tasks rows sharing the same type.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE amount > (\n SELECT COUNT(salary) FROM tasks AS tsk\n WHERE tsk.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00169", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(name, id, type, level)\n projects(name, code, amount, level)\nTask: Retrieve name from products that have at least one corresponding entry in projects sharing the same type.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "projects", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00170", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(salary, amount, id, type)\n sales(amount, name, code, type)\nTask: Find id from departments where a matching record exists in sales with the same id.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "sales", "outer_alias": "dept", "inner_alias": "sale", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00171", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(name, type, date, status)\n items(level, type, salary, name)\nTask: Retrieve value from requests with amount above the MIN(value) of items rows sharing the same id.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE amount > (\n SELECT MIN(value) FROM items AS lne\n WHERE lne.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00172", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(amount, id, code, level)\n invoices(salary, status, amount, date)\nTask: Select code from accounts where id exists in invoices for the same type.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM invoices AS inv\n WHERE inv.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "invoices", "outer_alias": "acct", "inner_alias": "inv", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00173", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(type, amount, name, level)\n orders(name, amount, status, level)\nTask: Retrieve id from invoices with value above the SUM(amount) of orders rows sharing the same level.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE value > (\n SELECT SUM(amount) FROM orders AS ord\n WHERE ord.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "orders", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00174", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(status, id, code, value)\n schedules(amount, value, date, code)\nTask: Find name from departments where salary exceeds the minimum salary from schedules for the same code.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE salary > (\n SELECT MIN(salary) FROM schedules AS schd\n WHERE schd.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "schedules", "outer_alias": "dept", "inner_alias": "schd", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00175", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(date, status, salary, id)\n tasks(type, id, code, name)\nTask: Retrieve amount from staff that have at least one corresponding entry in tasks sharing the same code.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "tasks", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "amount", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00176", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(salary, id, status, date)\n accounts(date, amount, code, type)\nTask: Select name from sales where code exists in accounts for the same id.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "accounts", "outer_alias": "sale", "inner_alias": "acct", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00177", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(id, status, type, amount)\n departments(status, salary, date, level)\nTask: Retrieve id from managers whose level is found in departments rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "departments", "outer_alias": "mgr", "inner_alias": "dept", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00178", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(level, amount, value, salary)\n staff(name, value, id, status)\nTask: Find id from tasks where status appears in staff entries with matching code.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "staff", "outer_alias": "tsk", "inner_alias": "empl", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00179", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(date, code, id, value)\n departments(id, level, salary, value)\nTask: Retrieve id from employees that have at least one corresponding entry in departments sharing the same status.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "departments", "outer_alias": "emp", "inner_alias": "dept", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00180", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(value, amount, id, status)\n regions(level, amount, date, value)\nTask: Retrieve id from products with salary above the SUM(salary) of regions rows sharing the same status.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE salary > (\n SELECT SUM(salary) FROM regions AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00181", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(name, value, salary, status)\n staff(status, salary, amount, code)\nTask: Retrieve code from schedules that have at least one corresponding entry in staff sharing the same type.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "staff", "outer_alias": "schd", "inner_alias": "empl", "proj_col": "code", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00182", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(status, date, value, id)\n regions(code, name, id, type)\nTask: Find name from products where value exceeds the total value from regions for the same status.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE value > (\n SELECT SUM(value) FROM regions AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00183", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(value, status, salary, name)\n products(type, level, value, code)\nTask: Retrieve amount from orders with salary above the AVG(salary) of products rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE salary > (\n SELECT AVG(salary) FROM products AS prod\n WHERE prod.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "products", "outer_alias": "ord", "inner_alias": "prod", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00184", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(type, id, level, amount)\n categories(code, level, salary, amount)\nTask: Retrieve id from departments that have at least one corresponding entry in categories sharing the same id.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "categories", "outer_alias": "dept", "inner_alias": "catg", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00185", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(name, id, value, date)\n staff(value, type, id, code)\nTask: Find name from transactions where id appears in staff entries with matching code.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM staff AS empl\n WHERE empl.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "staff", "outer_alias": "txn", "inner_alias": "empl", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00186", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(date, salary, status, code)\n branches(type, amount, date, id)\nTask: Find id from requests where a matching record exists in branches with the same status.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "branches", "outer_alias": "ordr", "inner_alias": "brc", "proj_col": "id", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00187", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(code, type, date, name)\n requests(code, type, level, name)\nTask: Retrieve amount from schedules with amount above the MIN(amount) of requests rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE amount > (\n SELECT MIN(amount) FROM requests AS ordr\n WHERE ordr.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "requests", "outer_alias": "schd", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00188", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(date, type, salary, level)\n regions(date, level, amount, status)\nTask: Retrieve value from categories that have at least one corresponding entry in regions sharing the same status.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "value", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00189", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(status, value, date, name)\n employees(id, salary, value, amount)\nTask: Retrieve code from categories with amount above the COUNT(salary) of employees rows sharing the same code.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE amount > (\n SELECT COUNT(salary) FROM employees AS emp\n WHERE emp.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "employees", "outer_alias": "catg", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00190", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(salary, id, date, level)\n products(type, status, level, code)\nTask: Retrieve name from shipments whose type is found in products rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM products AS prod\n WHERE prod.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00191", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(code, value, type, amount)\n orders(id, status, code, name)\nTask: Find code from projects where a matching record exists in orders with the same code.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "code", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00192", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(type, code, name, date)\n tasks(salary, value, status, amount)\nTask: Find id from managers where value exceeds the maximum value from tasks for the same id.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE value > (\n SELECT MAX(value) FROM tasks AS tsk\n WHERE tsk.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "tasks", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00193", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(id, amount, value, date)\n employees(name, type, salary, value)\nTask: Retrieve value from regions that have at least one corresponding entry in employees sharing the same type.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "value", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00194", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(id, code, type, salary)\n staff(value, salary, code, level)\nTask: Retrieve id from schedules that have at least one corresponding entry in staff sharing the same level.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "staff", "outer_alias": "schd", "inner_alias": "empl", "proj_col": "id", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00195", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(amount, level, type, salary)\n regions(name, code, level, status)\nTask: Find amount from schedules where status appears in regions entries with matching code.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE status IN (\n SELECT status FROM regions AS rgn\n WHERE rgn.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00196", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(date, code, name, id)\n products(status, id, salary, value)\nTask: Select salary from transactions where id exists in products for the same code.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00197", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(name, status, code, amount)\n invoices(status, type, level, amount)\nTask: Retrieve value from transactions whose type is found in invoices rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "invoices", "outer_alias": "txn", "inner_alias": "inv", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00198", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(name, amount, salary, level)\n accounts(type, id, salary, status)\nTask: Retrieve amount from branches with amount above the MIN(amount) of accounts rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE amount > (\n SELECT MIN(amount) FROM accounts AS acct\n WHERE acct.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "accounts", "outer_alias": "brc", "inner_alias": "acct", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00199", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(date, level, value, salary)\n requests(status, value, salary, id)\nTask: Find name from orders where value exceeds the maximum salary from requests for the same level.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE value > (\n SELECT MAX(salary) FROM requests AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "requests", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00200", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(value, code, type, salary)\n staff(type, value, salary, code)\nTask: Retrieve id from employees with salary above the AVG(value) of staff rows sharing the same status.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE salary > (\n SELECT AVG(value) FROM staff AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "staff", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00201", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(value, amount, status, salary)\n staff(name, id, level, salary)\nTask: Retrieve name from sales with value above the COUNT(value) of staff rows sharing the same level.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE value > (\n SELECT COUNT(value) FROM staff AS empl\n WHERE empl.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "staff", "outer_alias": "sale", "inner_alias": "empl", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00202", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(amount, value, code, status)\n categories(id, code, type, level)\nTask: Select name from projects where level exists in categories for the same code.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "categories", "outer_alias": "prj", "inner_alias": "catg", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00203", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(code, id, status, value)\n regions(value, id, date, status)\nTask: Find amount from items where level appears in regions entries with matching id.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "regions", "outer_alias": "lne", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00204", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(id, amount, name, status)\n accounts(date, code, id, value)\nTask: Find salary from customers where amount exceeds the minimum amount from accounts for the same type.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE amount > (\n SELECT MIN(amount) FROM accounts AS acct\n WHERE acct.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "accounts", "outer_alias": "cust", "inner_alias": "acct", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00205", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(type, code, salary, date)\n orders(value, type, id, date)\nTask: Retrieve amount from products with salary above the SUM(salary) of orders rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE salary > (\n SELECT SUM(salary) FROM orders AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "orders", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00206", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(amount, value, name, salary)\n requests(value, name, id, amount)\nTask: Find salary from branches where value exceeds the maximum value from requests for the same type.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE value > (\n SELECT MAX(value) FROM requests AS ordr\n WHERE ordr.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "requests", "outer_alias": "brc", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00207", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(amount, value, id, type)\n categories(status, level, date, amount)\nTask: Find value from customers where value exceeds the maximum salary from categories for the same code.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE value > (\n SELECT MAX(salary) FROM categories AS catg\n WHERE catg.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "categories", "outer_alias": "cust", "inner_alias": "catg", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00208", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(status, salary, id, amount)\n transactions(id, amount, status, name)\nTask: Find code from items where level appears in transactions entries with matching id.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "transactions", "outer_alias": "lne", "inner_alias": "txn", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00209", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(date, status, id, level)\n schedules(date, id, level, value)\nTask: Retrieve id from orders that have at least one corresponding entry in schedules sharing the same status.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "schedules", "outer_alias": "ord", "inner_alias": "schd", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00210", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(value, salary, amount, status)\n departments(type, salary, value, id)\nTask: Retrieve value from accounts with value above the SUM(amount) of departments rows sharing the same code.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE value > (\n SELECT SUM(amount) FROM departments AS dept\n WHERE dept.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "departments", "outer_alias": "acct", "inner_alias": "dept", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00211", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(date, status, code, id)\n customers(code, amount, salary, value)\nTask: Find salary from schedules where amount exceeds the count of salary from customers for the same code.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE amount > (\n SELECT COUNT(salary) FROM customers AS cust\n WHERE cust.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "customers", "outer_alias": "schd", "inner_alias": "cust", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00212", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(name, level, date, value)\n accounts(salary, status, type, id)\nTask: Find value from departments where id appears in accounts entries with matching id.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE id IN (\n SELECT id FROM accounts AS acct\n WHERE acct.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "accounts", "outer_alias": "dept", "inner_alias": "acct", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00213", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(status, id, date, amount)\n employees(name, level, id, type)\nTask: Retrieve name from departments that have at least one corresponding entry in employees sharing the same status.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "employees", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00214", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(code, status, name, salary)\n sales(amount, code, level, salary)\nTask: Find value from tasks where salary exceeds the minimum value from sales for the same code.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE salary > (\n SELECT MIN(value) FROM sales AS sale\n WHERE sale.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "sales", "outer_alias": "tsk", "inner_alias": "sale", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00215", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(name, id, value, level)\n invoices(date, salary, id, level)\nTask: Select salary from managers where status exists in invoices for the same type.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE status IN (\n SELECT status FROM invoices AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "invoices", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00216", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(amount, code, level, name)\n items(level, type, amount, status)\nTask: Find salary from schedules where salary exceeds the average amount from items for the same type.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE salary > (\n SELECT AVG(amount) FROM items AS lne\n WHERE lne.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00217", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(code, salary, type, level)\n regions(type, salary, level, name)\nTask: Find name from staff where a matching record exists in regions with the same level.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "regions", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00218", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(salary, status, id, amount)\n customers(id, status, code, level)\nTask: Find name from departments where a matching record exists in customers with the same type.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "customers", "outer_alias": "dept", "inner_alias": "cust", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00219", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(amount, status, level, name)\n shipments(date, level, name, code)\nTask: Retrieve amount from departments with amount above the COUNT(salary) of shipments rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE amount > (\n SELECT COUNT(salary) FROM shipments AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "shipments", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00220", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(type, amount, status, date)\n staff(name, amount, type, status)\nTask: Find name from categories where salary exceeds the total salary from staff for the same status.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE salary > (\n SELECT SUM(salary) FROM staff AS empl\n WHERE empl.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "staff", "outer_alias": "catg", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00221", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(salary, level, status, type)\n customers(status, type, value, id)\nTask: Retrieve code from employees that have at least one corresponding entry in customers sharing the same code.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "customers", "outer_alias": "emp", "inner_alias": "cust", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00222", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(type, salary, name, value)\n staff(level, status, date, name)\nTask: Retrieve id from managers that have at least one corresponding entry in staff sharing the same type.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "staff", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00223", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(value, status, type, id)\n customers(amount, name, code, date)\nTask: Find value from categories where amount exceeds the total salary from customers for the same level.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE amount > (\n SELECT SUM(salary) FROM customers AS cust\n WHERE cust.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "customers", "outer_alias": "catg", "inner_alias": "cust", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00224", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(amount, id, code, level)\n transactions(id, salary, code, amount)\nTask: Find id from shipments where a matching record exists in transactions with the same id.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "transactions", "outer_alias": "shp", "inner_alias": "txn", "proj_col": "id", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00225", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(level, code, id, name)\n regions(amount, type, date, name)\nTask: Select value from items where id exists in regions for the same code.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "regions", "outer_alias": "lne", "inner_alias": "rgn", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00226", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(name, amount, id, code)\n tasks(value, amount, type, salary)\nTask: Find id from sales where a matching record exists in tasks with the same type.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "tasks", "outer_alias": "sale", "inner_alias": "tsk", "proj_col": "id", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00227", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(type, amount, date, value)\n categories(salary, code, status, name)\nTask: Find code from departments where salary exceeds the average value from categories for the same code.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE salary > (\n SELECT AVG(value) FROM categories AS catg\n WHERE catg.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "categories", "outer_alias": "dept", "inner_alias": "catg", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00228", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(name, date, level, status)\n products(id, status, salary, date)\nTask: Find amount from categories where a matching record exists in products with the same level.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "products", "outer_alias": "catg", "inner_alias": "prod", "proj_col": "amount", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00229", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(id, code, value, level)\n shipments(date, type, level, status)\nTask: Find code from projects where a matching record exists in shipments with the same status.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "shipments", "outer_alias": "prj", "inner_alias": "shp", "proj_col": "code", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00230", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(id, amount, salary, type)\n employees(name, amount, value, id)\nTask: Retrieve salary from products whose type is found in employees rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "employees", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00231", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(salary, value, id, date)\n orders(type, code, amount, salary)\nTask: Find id from employees where a matching record exists in orders with the same level.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "orders", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00232", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(level, code, value, status)\n staff(amount, value, level, salary)\nTask: Select salary from categories where level exists in staff for the same type.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "staff", "outer_alias": "catg", "inner_alias": "empl", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00233", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(amount, type, salary, name)\n shipments(amount, id, salary, status)\nTask: Find code from orders where a matching record exists in shipments with the same type.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "shipments", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00234", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(date, value, type, status)\n customers(name, status, value, amount)\nTask: Retrieve amount from categories that have at least one corresponding entry in customers sharing the same level.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "customers", "outer_alias": "catg", "inner_alias": "cust", "proj_col": "amount", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00235", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(code, id, value, name)\n items(status, name, amount, type)\nTask: Retrieve value from transactions whose id is found in items rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "items", "outer_alias": "txn", "inner_alias": "lne", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00236", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(type, date, level, value)\n staff(level, value, status, date)\nTask: Find salary from departments where amount exceeds the count of amount from staff for the same code.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE amount > (\n SELECT COUNT(amount) FROM staff AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00237", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(name, amount, status, id)\n departments(name, salary, code, id)\nTask: Retrieve id from transactions with value above the AVG(amount) of departments rows sharing the same code.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE value > (\n SELECT AVG(amount) FROM departments AS dept\n WHERE dept.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "departments", "outer_alias": "txn", "inner_alias": "dept", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00238", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(value, code, type, status)\n orders(type, date, id, amount)\nTask: Retrieve id from transactions that have at least one corresponding entry in orders sharing the same id.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "orders", "outer_alias": "txn", "inner_alias": "ord", "proj_col": "id", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00239", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(id, type, level, status)\n sales(amount, level, date, value)\nTask: Retrieve amount from items with amount above the MAX(salary) of sales rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE amount > (\n SELECT MAX(salary) FROM sales AS sale\n WHERE sale.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "sales", "outer_alias": "lne", "inner_alias": "sale", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00240", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(level, code, amount, value)\n managers(level, value, code, date)\nTask: Retrieve amount from categories whose level is found in managers rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "managers", "outer_alias": "catg", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00241", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(type, name, id, code)\n branches(id, value, name, status)\nTask: Find value from managers where code appears in branches entries with matching level.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "branches", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00242", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(level, id, name, value)\n products(level, status, code, date)\nTask: Retrieve salary from departments with salary above the AVG(value) of products rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE salary > (\n SELECT AVG(value) FROM products AS prod\n WHERE prod.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "products", "outer_alias": "dept", "inner_alias": "prod", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00243", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(level, salary, name, date)\n products(name, id, type, date)\nTask: Find code from orders where salary exceeds the average amount from products for the same status.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE salary > (\n SELECT AVG(amount) FROM products AS prod\n WHERE prod.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "products", "outer_alias": "ord", "inner_alias": "prod", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00244", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(status, level, name, salary)\n accounts(value, salary, type, amount)\nTask: Retrieve amount from managers with amount above the MIN(value) of accounts rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE amount > (\n SELECT MIN(value) FROM accounts AS acct\n WHERE acct.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "accounts", "outer_alias": "mgr", "inner_alias": "acct", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00245", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(amount, name, type, level)\n staff(code, amount, type, date)\nTask: Retrieve amount from transactions with value above the AVG(salary) of staff rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE value > (\n SELECT AVG(salary) FROM staff AS empl\n WHERE empl.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "staff", "outer_alias": "txn", "inner_alias": "empl", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00246", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(id, value, name, amount)\n managers(date, value, salary, status)\nTask: Find value from employees where a matching record exists in managers with the same code.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "value", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00247", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(type, code, status, date)\n requests(salary, date, code, name)\nTask: Retrieve name from tasks with value above the AVG(value) of requests rows sharing the same level.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE value > (\n SELECT AVG(value) FROM requests AS ordr\n WHERE ordr.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00248", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(date, value, name, amount)\n orders(date, id, code, level)\nTask: Find salary from transactions where value exceeds the average amount from orders for the same level.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE value > (\n SELECT AVG(amount) FROM orders AS ord\n WHERE ord.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "orders", "outer_alias": "txn", "inner_alias": "ord", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00249", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(status, level, id, amount)\n shipments(type, value, level, name)\nTask: Retrieve amount from requests that have at least one corresponding entry in shipments sharing the same id.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "shipments", "outer_alias": "ordr", "inner_alias": "shp", "proj_col": "amount", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00250", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(status, value, level, code)\n items(code, id, date, name)\nTask: Find code from tasks where value exceeds the maximum amount from items for the same level.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE value > (\n SELECT MAX(amount) FROM items AS lne\n WHERE lne.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "items", "outer_alias": "tsk", "inner_alias": "lne", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00251", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(date, id, value, name)\n departments(amount, id, value, status)\nTask: Retrieve value from categories whose status is found in departments rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE status IN (\n SELECT status FROM departments AS dept\n WHERE dept.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "departments", "outer_alias": "catg", "inner_alias": "dept", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00252", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(date, salary, name, id)\n transactions(id, status, level, name)\nTask: Find salary from shipments where a matching record exists in transactions with the same level.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "transactions", "outer_alias": "shp", "inner_alias": "txn", "proj_col": "salary", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00253", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(type, salary, id, amount)\n staff(code, id, type, level)\nTask: Find salary from tasks where a matching record exists in staff with the same status.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "staff", "outer_alias": "tsk", "inner_alias": "empl", "proj_col": "salary", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00254", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(id, level, value, code)\n orders(type, date, code, amount)\nTask: Find name from departments where a matching record exists in orders with the same id.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "orders", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00255", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(salary, type, level, date)\n invoices(type, code, salary, value)\nTask: Find value from sales where a matching record exists in invoices with the same level.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "invoices", "outer_alias": "sale", "inner_alias": "inv", "proj_col": "value", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00256", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(type, id, name, value)\n requests(id, level, date, code)\nTask: Find salary from shipments where a matching record exists in requests with the same id.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "requests", "outer_alias": "shp", "inner_alias": "ordr", "proj_col": "salary", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00257", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(name, type, level, amount)\n managers(salary, type, level, name)\nTask: Find value from staff where a matching record exists in managers with the same status.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "managers", "outer_alias": "empl", "inner_alias": "mgr", "proj_col": "value", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00258", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(id, value, code, date)\n transactions(amount, salary, value, status)\nTask: Retrieve amount from projects whose status is found in transactions rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE status IN (\n SELECT status FROM transactions AS txn\n WHERE txn.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "transactions", "outer_alias": "prj", "inner_alias": "txn", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00259", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(name, type, amount, id)\n projects(status, date, name, code)\nTask: Retrieve value from employees that have at least one corresponding entry in projects sharing the same id.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "projects", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00260", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(salary, name, code, type)\n managers(id, value, code, amount)\nTask: Retrieve id from accounts with value above the COUNT(salary) of managers rows sharing the same code.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE value > (\n SELECT COUNT(salary) FROM managers AS mgr\n WHERE mgr.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "managers", "outer_alias": "acct", "inner_alias": "mgr", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00261", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(status, salary, id, level)\n items(date, status, name, level)\nTask: Retrieve salary from accounts with value above the COUNT(salary) of items rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE value > (\n SELECT COUNT(salary) FROM items AS lne\n WHERE lne.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "items", "outer_alias": "acct", "inner_alias": "lne", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00262", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(status, amount, code, date)\n transactions(amount, type, code, status)\nTask: Select name from customers where type exists in transactions for the same code.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE type IN (\n SELECT type FROM transactions AS txn\n WHERE txn.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "transactions", "outer_alias": "cust", "inner_alias": "txn", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00263", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(salary, value, level, type)\n requests(id, amount, salary, status)\nTask: Select value from staff where id exists in requests for the same type.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE id IN (\n SELECT id FROM requests AS ordr\n WHERE ordr.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "requests", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00264", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(status, code, level, date)\n sales(value, amount, level, date)\nTask: Retrieve salary from staff with salary above the COUNT(value) of sales rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE salary > (\n SELECT COUNT(value) FROM sales AS sale\n WHERE sale.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "sales", "outer_alias": "empl", "inner_alias": "sale", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00265", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(status, date, amount, type)\n orders(status, salary, id, type)\nTask: Retrieve amount from staff whose code is found in orders rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE code IN (\n SELECT code FROM orders AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "orders", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00266", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(code, value, type, salary)\n categories(status, value, type, level)\nTask: Find value from branches where a matching record exists in categories with the same level.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "categories", "outer_alias": "brc", "inner_alias": "catg", "proj_col": "value", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00267", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(amount, salary, date, type)\n staff(date, value, level, status)\nTask: Retrieve code from items that have at least one corresponding entry in staff sharing the same status.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "staff", "outer_alias": "lne", "inner_alias": "empl", "proj_col": "code", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00268", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(code, id, value, level)\n products(id, type, salary, amount)\nTask: Retrieve name from staff with amount above the SUM(value) of products rows sharing the same code.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE amount > (\n SELECT SUM(value) FROM products AS prod\n WHERE prod.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "products", "outer_alias": "empl", "inner_alias": "prod", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00269", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(type, code, level, name)\n staff(id, type, status, amount)\nTask: Retrieve id from sales that have at least one corresponding entry in staff sharing the same id.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "staff", "outer_alias": "sale", "inner_alias": "empl", "proj_col": "id", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00270", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(type, id, code, status)\n regions(type, name, value, salary)\nTask: Select name from projects where level exists in regions for the same id.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "regions", "outer_alias": "prj", "inner_alias": "rgn", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00271", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(salary, value, status, amount)\n invoices(date, value, status, code)\nTask: Find id from transactions where amount exceeds the total salary from invoices for the same id.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE amount > (\n SELECT SUM(salary) FROM invoices AS inv\n WHERE inv.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "invoices", "outer_alias": "txn", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00272", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(name, level, code, status)\n employees(level, type, code, id)\nTask: Find code from accounts where status appears in employees entries with matching level.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "employees", "outer_alias": "acct", "inner_alias": "emp", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00273", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(status, id, salary, name)\n schedules(status, value, name, id)\nTask: Select name from tasks where level exists in schedules for the same id.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM schedules AS schd\n WHERE schd.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "schedules", "outer_alias": "tsk", "inner_alias": "schd", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00274", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(salary, value, id, name)\n transactions(level, value, type, date)\nTask: Retrieve name from managers that have at least one corresponding entry in transactions sharing the same level.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "transactions", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00275", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(level, value, status, salary)\n requests(value, status, type, name)\nTask: Retrieve name from accounts with amount above the MIN(amount) of requests rows sharing the same level.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE amount > (\n SELECT MIN(amount) FROM requests AS ordr\n WHERE ordr.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "requests", "outer_alias": "acct", "inner_alias": "ordr", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00276", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(value, type, salary, id)\n products(type, level, code, salary)\nTask: Find salary from categories where a matching record exists in products with the same status.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "products", "outer_alias": "catg", "inner_alias": "prod", "proj_col": "salary", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00277", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(value, id, amount, status)\n transactions(amount, id, date, type)\nTask: Retrieve name from branches that have at least one corresponding entry in transactions sharing the same type.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "transactions", "outer_alias": "brc", "inner_alias": "txn", "proj_col": "name", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00278", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(amount, level, type, id)\n sales(name, amount, id, status)\nTask: Retrieve code from requests whose code is found in sales rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM sales AS sale\n WHERE sale.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "sales", "outer_alias": "ordr", "inner_alias": "sale", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00279", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(date, id, value, status)\n shipments(date, code, type, name)\nTask: Find salary from items where a matching record exists in shipments with the same id.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "shipments", "outer_alias": "lne", "inner_alias": "shp", "proj_col": "salary", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00280", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(id, type, salary, value)\n requests(amount, value, salary, code)\nTask: Select id from employees where status exists in requests for the same type.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "requests", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00281", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(value, level, name, id)\n regions(salary, id, level, date)\nTask: Find id from departments where a matching record exists in regions with the same status.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "regions", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00282", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(type, date, name, level)\n departments(date, salary, id, value)\nTask: Retrieve name from shipments that have at least one corresponding entry in departments sharing the same status.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "departments", "outer_alias": "shp", "inner_alias": "dept", "proj_col": "name", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00283", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(id, salary, value, code)\n sales(id, amount, salary, code)\nTask: Retrieve amount from schedules with value above the COUNT(salary) of sales rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE value > (\n SELECT COUNT(salary) FROM sales AS sale\n WHERE sale.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "sales", "outer_alias": "schd", "inner_alias": "sale", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00284", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(amount, status, name, value)\n customers(level, date, value, id)\nTask: Retrieve value from regions that have at least one corresponding entry in customers sharing the same level.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "customers", "outer_alias": "rgn", "inner_alias": "cust", "proj_col": "value", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00285", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(amount, id, level, value)\n transactions(code, amount, type, date)\nTask: Retrieve code from requests whose code is found in transactions rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00286", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(id, date, amount, type)\n regions(value, code, date, amount)\nTask: Find salary from transactions where level appears in regions entries with matching type.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00287", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(level, type, salary, amount)\n branches(type, level, code, value)\nTask: Retrieve id from employees that have at least one corresponding entry in branches sharing the same code.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "branches", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00288", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(level, code, date, type)\n staff(amount, level, status, id)\nTask: Find name from products where type appears in staff entries with matching id.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00289", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(status, amount, type, name)\n categories(salary, date, name, type)\nTask: Find id from managers where a matching record exists in categories with the same type.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "categories", "outer_alias": "mgr", "inner_alias": "catg", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00290", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(id, code, name, status)\n transactions(name, type, salary, status)\nTask: Find name from shipments where a matching record exists in transactions with the same code.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "transactions", "outer_alias": "shp", "inner_alias": "txn", "proj_col": "name", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00291", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(amount, date, value, name)\n categories(name, date, level, value)\nTask: Retrieve salary from sales with amount above the MIN(value) of categories rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE amount > (\n SELECT MIN(value) FROM categories AS catg\n WHERE catg.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "categories", "outer_alias": "sale", "inner_alias": "catg", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00292", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(id, salary, level, code)\n orders(type, level, code, amount)\nTask: Find code from schedules where status appears in orders entries with matching type.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE status IN (\n SELECT status FROM orders AS ord\n WHERE ord.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "orders", "outer_alias": "schd", "inner_alias": "ord", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00293", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(salary, value, type, id)\n employees(amount, id, type, status)\nTask: Retrieve id from regions with amount above the MAX(value) of employees rows sharing the same id.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE amount > (\n SELECT MAX(value) FROM employees AS emp\n WHERE emp.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00294", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(name, amount, value, code)\n products(salary, level, status, type)\nTask: Find salary from customers where amount exceeds the maximum value from products for the same level.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE amount > (\n SELECT MAX(value) FROM products AS prod\n WHERE prod.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "products", "outer_alias": "cust", "inner_alias": "prod", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00295", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(date, level, amount, type)\n branches(status, date, id, amount)\nTask: Find salary from categories where a matching record exists in branches with the same id.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "salary", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00296", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(salary, id, value, type)\n managers(type, salary, id, date)\nTask: Select salary from categories where id exists in managers for the same id.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "managers", "outer_alias": "catg", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00297", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(salary, level, date, amount)\n branches(date, amount, level, status)\nTask: Retrieve id from customers with salary above the MIN(value) of branches rows sharing the same type.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE salary > (\n SELECT MIN(value) FROM branches AS brc\n WHERE brc.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "branches", "outer_alias": "cust", "inner_alias": "brc", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00298", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(status, amount, name, type)\n products(salary, date, level, code)\nTask: Find name from managers where type appears in products entries with matching type.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM products AS prod\n WHERE prod.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00299", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(date, code, name, level)\n branches(amount, type, salary, level)\nTask: Find id from accounts where value exceeds the total salary from branches for the same type.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE value > (\n SELECT SUM(salary) FROM branches AS brc\n WHERE brc.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "branches", "outer_alias": "acct", "inner_alias": "brc", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00300", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(name, status, value, type)\n requests(salary, date, id, name)\nTask: Find name from staff where value exceeds the total amount from requests for the same id.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE value > (\n SELECT SUM(amount) FROM requests AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "requests", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00301", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(value, type, code, id)\n branches(level, status, salary, value)\nTask: Find value from regions where code appears in branches entries with matching id.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "branches", "outer_alias": "rgn", "inner_alias": "brc", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00302", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(amount, date, code, level)\n transactions(id, amount, code, salary)\nTask: Retrieve id from managers that have at least one corresponding entry in transactions sharing the same code.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "transactions", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00303", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(date, salary, amount, code)\n shipments(code, date, id, amount)\nTask: Find id from requests where a matching record exists in shipments with the same status.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "shipments", "outer_alias": "ordr", "inner_alias": "shp", "proj_col": "id", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00304", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(name, amount, id, type)\n branches(salary, id, status, amount)\nTask: Retrieve name from invoices with value above the MIN(salary) of branches rows sharing the same level.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE value > (\n SELECT MIN(salary) FROM branches AS brc\n WHERE brc.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "branches", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00305", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(value, date, status, salary)\n shipments(salary, name, date, amount)\nTask: Retrieve name from projects with value above the MAX(value) of shipments rows sharing the same level.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE value > (\n SELECT MAX(value) FROM shipments AS shp\n WHERE shp.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "shipments", "outer_alias": "prj", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00306", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(status, amount, value, code)\n projects(level, value, id, salary)\nTask: Select code from orders where id exists in projects for the same id.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "projects", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00307", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(id, code, value, name)\n sales(date, level, value, status)\nTask: Retrieve id from categories that have at least one corresponding entry in sales sharing the same level.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "sales", "outer_alias": "catg", "inner_alias": "sale", "proj_col": "id", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00308", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(status, amount, salary, id)\n transactions(type, code, value, amount)\nTask: Retrieve salary from products with value above the SUM(amount) of transactions rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE value > (\n SELECT SUM(amount) FROM transactions AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00309", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(value, id, type, amount)\n shipments(level, id, amount, status)\nTask: Retrieve code from tasks with value above the AVG(amount) of shipments rows sharing the same id.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE value > (\n SELECT AVG(amount) FROM shipments AS shp\n WHERE shp.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "shipments", "outer_alias": "tsk", "inner_alias": "shp", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00310", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(salary, code, name, amount)\n items(salary, amount, code, level)\nTask: Retrieve salary from employees with salary above the COUNT(salary) of items rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE salary > (\n SELECT COUNT(salary) FROM items AS lne\n WHERE lne.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "items", "outer_alias": "emp", "inner_alias": "lne", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00311", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(id, type, code, level)\n branches(status, id, value, name)\nTask: Find salary from managers where type appears in branches entries with matching level.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM branches AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "branches", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00312", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(name, value, code, id)\n items(id, status, type, salary)\nTask: Select name from requests where status exists in items for the same id.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00313", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(id, value, amount, date)\n tasks(id, salary, amount, value)\nTask: Find value from managers where amount exceeds the maximum value from tasks for the same type.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE amount > (\n SELECT MAX(value) FROM tasks AS tsk\n WHERE tsk.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "tasks", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00314", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(code, level, type, value)\n staff(amount, date, salary, type)\nTask: Find code from items where amount exceeds the maximum amount from staff for the same code.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE amount > (\n SELECT MAX(amount) FROM staff AS empl\n WHERE empl.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "staff", "outer_alias": "lne", "inner_alias": "empl", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00315", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(code, amount, type, value)\n branches(salary, code, name, id)\nTask: Retrieve value from customers whose code is found in branches rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "branches", "outer_alias": "cust", "inner_alias": "brc", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00316", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(salary, type, date, amount)\n managers(code, status, value, amount)\nTask: Find value from staff where amount exceeds the maximum amount from managers for the same id.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE amount > (\n SELECT MAX(amount) FROM managers AS mgr\n WHERE mgr.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "managers", "outer_alias": "empl", "inner_alias": "mgr", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00317", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(level, id, status, value)\n employees(value, level, date, code)\nTask: Retrieve value from categories that have at least one corresponding entry in employees sharing the same code.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "employees", "outer_alias": "catg", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00318", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(level, date, code, value)\n sales(type, salary, status, code)\nTask: Retrieve name from invoices that have at least one corresponding entry in sales sharing the same type.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "sales", "outer_alias": "inv", "inner_alias": "sale", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00319", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(value, level, name, type)\n accounts(value, id, name, level)\nTask: Select amount from sales where code exists in accounts for the same level.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "accounts", "outer_alias": "sale", "inner_alias": "acct", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00320", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(level, id, amount, name)\n branches(name, date, status, salary)\nTask: Select code from tasks where code exists in branches for the same id.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "branches", "outer_alias": "tsk", "inner_alias": "brc", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00321", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(id, salary, type, value)\n orders(value, id, code, amount)\nTask: Retrieve code from products with amount above the MAX(amount) of orders rows sharing the same id.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE amount > (\n SELECT MAX(amount) FROM orders AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "orders", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00322", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(amount, value, level, name)\n products(name, salary, amount, id)\nTask: Retrieve salary from transactions that have at least one corresponding entry in products sharing the same code.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "salary", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00323", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(date, code, id, type)\n invoices(status, salary, id, value)\nTask: Find amount from branches where a matching record exists in invoices with the same id.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "invoices", "outer_alias": "brc", "inner_alias": "inv", "proj_col": "amount", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00324", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(salary, value, date, id)\n shipments(name, salary, status, amount)\nTask: Retrieve name from accounts that have at least one corresponding entry in shipments sharing the same status.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "shipments", "outer_alias": "acct", "inner_alias": "shp", "proj_col": "name", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00325", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(date, status, id, type)\n branches(id, status, salary, value)\nTask: Retrieve value from regions that have at least one corresponding entry in branches sharing the same code.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "branches", "outer_alias": "rgn", "inner_alias": "brc", "proj_col": "value", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00326", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(salary, id, level, value)\n sales(amount, salary, name, status)\nTask: Find id from departments where salary exceeds the average amount from sales for the same id.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE salary > (\n SELECT AVG(amount) FROM sales AS sale\n WHERE sale.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "sales", "outer_alias": "dept", "inner_alias": "sale", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00327", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(date, code, name, salary)\n departments(id, code, salary, level)\nTask: Find value from requests where a matching record exists in departments with the same code.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "departments", "outer_alias": "ordr", "inner_alias": "dept", "proj_col": "value", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00328", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(value, amount, date, status)\n accounts(value, salary, amount, name)\nTask: Find value from orders where a matching record exists in accounts with the same status.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "accounts", "outer_alias": "ord", "inner_alias": "acct", "proj_col": "value", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00329", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(code, date, type, name)\n departments(type, value, level, id)\nTask: Retrieve code from categories whose code is found in departments rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "departments", "outer_alias": "catg", "inner_alias": "dept", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00330", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(code, salary, type, amount)\n categories(status, name, salary, type)\nTask: Retrieve value from schedules that have at least one corresponding entry in categories sharing the same status.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "categories", "outer_alias": "schd", "inner_alias": "catg", "proj_col": "value", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00331", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(id, value, name, code)\n customers(value, level, amount, date)\nTask: Retrieve code from projects with salary above the SUM(salary) of customers rows sharing the same type.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE salary > (\n SELECT SUM(salary) FROM customers AS cust\n WHERE cust.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "customers", "outer_alias": "prj", "inner_alias": "cust", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00332", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(name, amount, id, code)\n sales(amount, id, code, salary)\nTask: Find amount from managers where a matching record exists in sales with the same code.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "sales", "outer_alias": "mgr", "inner_alias": "sale", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00333", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(id, code, status, salary)\n managers(amount, name, type, date)\nTask: Retrieve id from items with amount above the MAX(salary) of managers rows sharing the same code.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE amount > (\n SELECT MAX(salary) FROM managers AS mgr\n WHERE mgr.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "managers", "outer_alias": "lne", "inner_alias": "mgr", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00334", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(type, name, value, salary)\n orders(level, name, amount, status)\nTask: Find name from projects where level appears in orders entries with matching id.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00335", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(date, status, salary, level)\n invoices(level, value, type, date)\nTask: Find value from employees where amount exceeds the average value from invoices for the same code.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE amount > (\n SELECT AVG(value) FROM invoices AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00336", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(level, name, value, amount)\n customers(name, date, amount, value)\nTask: Retrieve id from branches that have at least one corresponding entry in customers sharing the same type.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "customers", "outer_alias": "brc", "inner_alias": "cust", "proj_col": "id", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00337", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(level, status, id, amount)\n invoices(amount, type, status, id)\nTask: Retrieve code from schedules whose type is found in invoices rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "invoices", "outer_alias": "schd", "inner_alias": "inv", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00338", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(amount, salary, status, code)\n projects(level, value, name, type)\nTask: Find amount from regions where amount exceeds the count of salary from projects for the same type.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE amount > (\n SELECT COUNT(salary) FROM projects AS prj\n WHERE prj.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "projects", "outer_alias": "rgn", "inner_alias": "prj", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00339", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(code, level, type, salary)\n tasks(date, amount, value, status)\nTask: Find amount from schedules where value exceeds the maximum amount from tasks for the same status.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE value > (\n SELECT MAX(amount) FROM tasks AS tsk\n WHERE tsk.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "tasks", "outer_alias": "schd", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00340", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(id, name, type, date)\n requests(id, code, type, amount)\nTask: Find name from managers where type appears in requests entries with matching id.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00341", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(type, code, id, date)\n accounts(code, id, name, level)\nTask: Find salary from transactions where level appears in accounts entries with matching type.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM accounts AS acct\n WHERE acct.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "accounts", "outer_alias": "txn", "inner_alias": "acct", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00342", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(code, id, date, type)\n categories(id, status, code, type)\nTask: Select code from accounts where id exists in categories for the same id.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "categories", "outer_alias": "acct", "inner_alias": "catg", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00343", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(salary, code, date, id)\n staff(salary, value, code, date)\nTask: Retrieve salary from regions that have at least one corresponding entry in staff sharing the same code.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "staff", "outer_alias": "rgn", "inner_alias": "empl", "proj_col": "salary", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00344", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(value, salary, name, code)\n branches(name, type, status, salary)\nTask: Find name from shipments where level appears in branches entries with matching status.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "branches", "outer_alias": "shp", "inner_alias": "brc", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00345", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(value, salary, status, level)\n schedules(amount, code, status, type)\nTask: Select amount from customers where status exists in schedules for the same code.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE status IN (\n SELECT status FROM schedules AS schd\n WHERE schd.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "schedules", "outer_alias": "cust", "inner_alias": "schd", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00346", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(code, level, amount, date)\n orders(id, date, name, salary)\nTask: Find salary from projects where salary exceeds the average amount from orders for the same type.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE salary > (\n SELECT AVG(amount) FROM orders AS ord\n WHERE ord.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00347", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(date, code, id, level)\n regions(type, value, id, code)\nTask: Retrieve id from products with value above the SUM(value) of regions rows sharing the same status.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE value > (\n SELECT SUM(value) FROM regions AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00348", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(amount, id, date, type)\n staff(date, id, type, level)\nTask: Find amount from products where a matching record exists in staff with the same code.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "amount", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00349", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(code, salary, date, level)\n customers(name, code, date, level)\nTask: Retrieve value from accounts that have at least one corresponding entry in customers sharing the same code.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "customers", "outer_alias": "acct", "inner_alias": "cust", "proj_col": "value", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00350", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(level, amount, id, status)\n regions(type, level, status, code)\nTask: Find value from requests where salary exceeds the average amount from regions for the same level.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE salary > (\n SELECT AVG(amount) FROM regions AS rgn\n WHERE rgn.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "regions", "outer_alias": "ordr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00351", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(status, code, salary, amount)\n branches(name, level, value, id)\nTask: Find salary from items where type appears in branches entries with matching level.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE type IN (\n SELECT type FROM branches AS brc\n WHERE brc.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00352", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(level, amount, date, value)\n invoices(id, salary, value, date)\nTask: Find salary from shipments where salary exceeds the total amount from invoices for the same status.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE salary > (\n SELECT SUM(amount) FROM invoices AS inv\n WHERE inv.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "invoices", "outer_alias": "shp", "inner_alias": "inv", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00353", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(type, date, status, id)\n employees(salary, name, value, type)\nTask: Retrieve name from items that have at least one corresponding entry in employees sharing the same type.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "name", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00354", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(date, value, amount, type)\n shipments(name, status, salary, id)\nTask: Retrieve name from regions with salary above the MIN(amount) of shipments rows sharing the same status.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE salary > (\n SELECT MIN(amount) FROM shipments AS shp\n WHERE shp.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "shipments", "outer_alias": "rgn", "inner_alias": "shp", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00355", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(code, salary, value, id)\n accounts(code, salary, value, level)\nTask: Select code from tasks where type exists in accounts for the same id.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "accounts", "outer_alias": "tsk", "inner_alias": "acct", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00356", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(code, date, name, status)\n invoices(status, name, value, date)\nTask: Retrieve name from customers with amount above the COUNT(amount) of invoices rows sharing the same id.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE amount > (\n SELECT COUNT(amount) FROM invoices AS inv\n WHERE inv.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00357", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(id, amount, code, date)\n requests(level, type, date, value)\nTask: Retrieve salary from sales with amount above the AVG(amount) of requests rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE amount > (\n SELECT AVG(amount) FROM requests AS ordr\n WHERE ordr.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "requests", "outer_alias": "sale", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00358", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(date, code, type, status)\n branches(date, amount, id, status)\nTask: Select id from departments where code exists in branches for the same level.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "branches", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00359", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(name, code, salary, type)\n departments(name, date, status, level)\nTask: Find salary from staff where a matching record exists in departments with the same id.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "departments", "outer_alias": "empl", "inner_alias": "dept", "proj_col": "salary", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00360", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(amount, level, status, value)\n accounts(salary, code, amount, value)\nTask: Select code from branches where level exists in accounts for the same status.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE level IN (\n SELECT level FROM accounts AS acct\n WHERE acct.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "accounts", "outer_alias": "brc", "inner_alias": "acct", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00361", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(value, id, name, status)\n projects(amount, code, value, id)\nTask: Find amount from tasks where code appears in projects entries with matching id.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "projects", "outer_alias": "tsk", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00362", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(type, status, amount, level)\n shipments(value, name, code, level)\nTask: Find value from projects where value exceeds the minimum amount from shipments for the same level.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE value > (\n SELECT MIN(amount) FROM shipments AS shp\n WHERE shp.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "shipments", "outer_alias": "prj", "inner_alias": "shp", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00363", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(name, date, amount, salary)\n accounts(code, status, name, date)\nTask: Find value from regions where id appears in accounts entries with matching code.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE id IN (\n SELECT id FROM accounts AS acct\n WHERE acct.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "accounts", "outer_alias": "rgn", "inner_alias": "acct", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00364", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(id, code, date, status)\n regions(name, salary, amount, date)\nTask: Retrieve value from items with salary above the AVG(salary) of regions rows sharing the same code.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE salary > (\n SELECT AVG(salary) FROM regions AS rgn\n WHERE rgn.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "regions", "outer_alias": "lne", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00365", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(value, status, date, level)\n departments(amount, id, name, code)\nTask: Select id from accounts where type exists in departments for the same level.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE type IN (\n SELECT type FROM departments AS dept\n WHERE dept.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "departments", "outer_alias": "acct", "inner_alias": "dept", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00366", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(id, value, salary, date)\n departments(value, code, status, name)\nTask: Find salary from managers where a matching record exists in departments with the same type.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "departments", "outer_alias": "mgr", "inner_alias": "dept", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00367", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(type, date, code, id)\n sales(value, level, status, name)\nTask: Retrieve value from departments whose status is found in sales rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "sales", "outer_alias": "dept", "inner_alias": "sale", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00368", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(value, code, status, name)\n transactions(level, id, salary, status)\nTask: Retrieve amount from sales whose code is found in transactions rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "transactions", "outer_alias": "sale", "inner_alias": "txn", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00369", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(id, type, name, code)\n sales(id, type, date, value)\nTask: Find name from orders where a matching record exists in sales with the same type.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "sales", "outer_alias": "ord", "inner_alias": "sale", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00370", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(value, type, name, date)\n staff(type, name, salary, value)\nTask: Retrieve id from projects that have at least one corresponding entry in staff sharing the same status.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "staff", "outer_alias": "prj", "inner_alias": "empl", "proj_col": "id", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00371", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(value, status, salary, id)\n categories(code, value, amount, type)\nTask: Retrieve id from employees that have at least one corresponding entry in categories sharing the same status.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "categories", "outer_alias": "emp", "inner_alias": "catg", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00372", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(type, level, status, code)\n requests(date, salary, value, id)\nTask: Retrieve id from schedules that have at least one corresponding entry in requests sharing the same code.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "requests", "outer_alias": "schd", "inner_alias": "ordr", "proj_col": "id", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00373", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(amount, date, status, name)\n projects(level, id, type, value)\nTask: Find code from customers where salary exceeds the average salary from projects for the same status.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE salary > (\n SELECT AVG(salary) FROM projects AS prj\n WHERE prj.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "projects", "outer_alias": "cust", "inner_alias": "prj", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00374", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(id, type, name, amount)\n items(value, date, salary, id)\nTask: Retrieve value from managers that have at least one corresponding entry in items sharing the same id.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "items", "outer_alias": "mgr", "inner_alias": "lne", "proj_col": "value", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00375", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(salary, date, code, value)\n departments(name, id, code, level)\nTask: Retrieve name from transactions that have at least one corresponding entry in departments sharing the same type.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "departments", "outer_alias": "txn", "inner_alias": "dept", "proj_col": "name", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00376", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(name, code, amount, salary)\n regions(code, level, salary, name)\nTask: Retrieve code from products with amount above the COUNT(amount) of regions rows sharing the same code.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE amount > (\n SELECT COUNT(amount) FROM regions AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00377", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(type, level, date, name)\n invoices(id, salary, name, type)\nTask: Find value from customers where a matching record exists in invoices with the same id.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "value", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00378", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(level, amount, status, value)\n tasks(amount, value, date, name)\nTask: Retrieve amount from categories with salary above the SUM(value) of tasks rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE salary > (\n SELECT SUM(value) FROM tasks AS tsk\n WHERE tsk.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "tasks", "outer_alias": "catg", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00379", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, type, code, salary)\n branches(type, id, salary, code)\nTask: Retrieve value from shipments whose code is found in branches rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "branches", "outer_alias": "shp", "inner_alias": "brc", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00380", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(level, date, value, code)\n tasks(level, name, value, date)\nTask: Find code from employees where amount exceeds the average value from tasks for the same status.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE amount > (\n SELECT AVG(value) FROM tasks AS tsk\n WHERE tsk.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "tasks", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00381", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(status, value, level, name)\n employees(date, status, code, id)\nTask: Find salary from schedules where value exceeds the count of value from employees for the same type.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE value > (\n SELECT COUNT(value) FROM employees AS emp\n WHERE emp.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00382", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(status, salary, code, type)\n staff(name, type, date, code)\nTask: Select code from branches where type exists in staff for the same type.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "staff", "outer_alias": "brc", "inner_alias": "empl", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00383", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(salary, type, level, name)\n staff(date, id, code, salary)\nTask: Retrieve name from managers with salary above the MAX(salary) of staff rows sharing the same id.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE salary > (\n SELECT MAX(salary) FROM staff AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "staff", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00384", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(id, salary, level, type)\n products(name, id, date, amount)\nTask: Retrieve id from regions whose level is found in products rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00385", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(value, level, salary, amount)\n departments(code, level, status, date)\nTask: Find value from tasks where type appears in departments entries with matching status.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM departments AS dept\n WHERE dept.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "departments", "outer_alias": "tsk", "inner_alias": "dept", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00386", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(value, type, date, name)\n shipments(level, salary, id, code)\nTask: Select name from sales where level exists in shipments for the same code.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE level IN (\n SELECT level FROM shipments AS shp\n WHERE shp.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "shipments", "outer_alias": "sale", "inner_alias": "shp", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00387", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(salary, type, id, amount)\n regions(amount, value, level, salary)\nTask: Retrieve name from transactions whose level is found in regions rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00388", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(name, status, salary, type)\n customers(status, salary, amount, type)\nTask: Select amount from managers where level exists in customers for the same type.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "customers", "outer_alias": "mgr", "inner_alias": "cust", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00389", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(status, date, name, type)\n customers(date, id, salary, status)\nTask: Retrieve id from branches with amount above the AVG(amount) of customers rows sharing the same status.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE amount > (\n SELECT AVG(amount) FROM customers AS cust\n WHERE cust.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "customers", "outer_alias": "brc", "inner_alias": "cust", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00390", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(value, name, code, status)\n regions(level, code, salary, name)\nTask: Retrieve code from categories with salary above the MIN(amount) of regions rows sharing the same id.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE salary > (\n SELECT MIN(amount) FROM regions AS rgn\n WHERE rgn.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00391", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(status, name, type, code)\n regions(type, level, status, id)\nTask: Find salary from categories where a matching record exists in regions with the same status.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "salary", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00392", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(name, date, id, level)\n invoices(amount, id, date, type)\nTask: Retrieve code from categories that have at least one corresponding entry in invoices sharing the same type.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "invoices", "outer_alias": "catg", "inner_alias": "inv", "proj_col": "code", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00393", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(amount, code, status, type)\n shipments(value, name, salary, amount)\nTask: Find amount from staff where type appears in shipments entries with matching level.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE type IN (\n SELECT type FROM shipments AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00394", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(value, status, id, amount)\n projects(amount, date, salary, id)\nTask: Find code from categories where a matching record exists in projects with the same status.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "projects", "outer_alias": "catg", "inner_alias": "prj", "proj_col": "code", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00395", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(date, level, value, amount)\n accounts(id, value, status, name)\nTask: Select amount from sales where id exists in accounts for the same level.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE id IN (\n SELECT id FROM accounts AS acct\n WHERE acct.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "accounts", "outer_alias": "sale", "inner_alias": "acct", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00396", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(amount, id, name, level)\n regions(date, amount, value, id)\nTask: Find id from employees where a matching record exists in regions with the same level.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "regions", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00397", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(salary, level, status, amount)\n tasks(amount, level, value, type)\nTask: Retrieve code from projects whose type is found in tasks rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "tasks", "outer_alias": "prj", "inner_alias": "tsk", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00398", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(status, value, salary, date)\n projects(amount, salary, level, date)\nTask: Find code from shipments where a matching record exists in projects with the same id.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "projects", "outer_alias": "shp", "inner_alias": "prj", "proj_col": "code", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00399", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(status, id, name, level)\n categories(level, name, type, code)\nTask: Select salary from employees where code exists in categories for the same code.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE code IN (\n SELECT code FROM categories AS catg\n WHERE catg.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "categories", "outer_alias": "emp", "inner_alias": "catg", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00400", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(type, name, status, id)\n transactions(amount, date, type, id)\nTask: Find name from products where value exceeds the count of amount from transactions for the same level.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE value > (\n SELECT COUNT(amount) FROM transactions AS txn\n WHERE txn.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00401", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(salary, date, level, code)\n branches(level, amount, code, date)\nTask: Find id from staff where salary exceeds the minimum amount from branches for the same id.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE salary > (\n SELECT MIN(amount) FROM branches AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "branches", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00402", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(status, name, amount, code)\n projects(value, amount, salary, name)\nTask: Find id from categories where value exceeds the minimum salary from projects for the same status.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE value > (\n SELECT MIN(salary) FROM projects AS prj\n WHERE prj.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "projects", "outer_alias": "catg", "inner_alias": "prj", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00403", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(type, date, amount, value)\n products(status, amount, salary, level)\nTask: Retrieve code from invoices with value above the MIN(amount) of products rows sharing the same code.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE value > (\n SELECT MIN(amount) FROM products AS prod\n WHERE prod.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "products", "outer_alias": "inv", "inner_alias": "prod", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00404", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(salary, level, amount, value)\n products(amount, status, id, code)\nTask: Retrieve amount from requests whose status is found in products rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "products", "outer_alias": "ordr", "inner_alias": "prod", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00405", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(status, level, salary, id)\n branches(salary, name, id, status)\nTask: Select id from tasks where status exists in branches for the same code.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "branches", "outer_alias": "tsk", "inner_alias": "brc", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00406", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(type, id, level, value)\n categories(code, status, level, date)\nTask: Find name from tasks where a matching record exists in categories with the same code.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "categories", "outer_alias": "tsk", "inner_alias": "catg", "proj_col": "name", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00407", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(id, salary, level, code)\n requests(type, status, name, date)\nTask: Find amount from branches where a matching record exists in requests with the same status.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "requests", "outer_alias": "brc", "inner_alias": "ordr", "proj_col": "amount", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00408", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(id, amount, date, salary)\n departments(type, code, level, id)\nTask: Retrieve name from invoices that have at least one corresponding entry in departments sharing the same id.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "departments", "outer_alias": "inv", "inner_alias": "dept", "proj_col": "name", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00409", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(name, status, level, code)\n customers(status, id, value, level)\nTask: Select code from accounts where code exists in customers for the same code.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "customers", "outer_alias": "acct", "inner_alias": "cust", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00410", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(status, name, amount, level)\n categories(name, salary, type, value)\nTask: Retrieve name from items with value above the SUM(salary) of categories rows sharing the same id.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE value > (\n SELECT SUM(salary) FROM categories AS catg\n WHERE catg.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00411", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(salary, code, value, type)\n staff(status, amount, type, id)\nTask: Retrieve code from schedules that have at least one corresponding entry in staff sharing the same level.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "staff", "outer_alias": "schd", "inner_alias": "empl", "proj_col": "code", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00412", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(level, code, value, type)\n items(level, date, amount, value)\nTask: Retrieve id from employees that have at least one corresponding entry in items sharing the same status.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "items", "outer_alias": "emp", "inner_alias": "lne", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00413", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(salary, date, id, name)\n accounts(id, level, code, status)\nTask: Find id from departments where value exceeds the total salary from accounts for the same status.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE value > (\n SELECT SUM(salary) FROM accounts AS acct\n WHERE acct.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "accounts", "outer_alias": "dept", "inner_alias": "acct", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00414", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(status, name, id, value)\n requests(code, id, level, type)\nTask: Retrieve code from invoices that have at least one corresponding entry in requests sharing the same id.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "requests", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00415", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(type, id, name, amount)\n items(type, level, name, salary)\nTask: Find value from branches where code appears in items entries with matching level.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE code IN (\n SELECT code FROM items AS lne\n WHERE lne.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "items", "outer_alias": "brc", "inner_alias": "lne", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00416", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(salary, name, amount, status)\n employees(value, status, name, date)\nTask: Find id from customers where a matching record exists in employees with the same level.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "id", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00417", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(status, level, value, name)\n departments(date, salary, code, id)\nTask: Find amount from categories where a matching record exists in departments with the same status.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "departments", "outer_alias": "catg", "inner_alias": "dept", "proj_col": "amount", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00418", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(amount, status, type, code)\n categories(type, code, value, status)\nTask: Retrieve name from invoices whose level is found in categories rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "categories", "outer_alias": "inv", "inner_alias": "catg", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00419", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(code, status, level, amount)\n requests(level, status, salary, code)\nTask: Find id from employees where amount exceeds the count of value from requests for the same level.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE amount > (\n SELECT COUNT(value) FROM requests AS ordr\n WHERE ordr.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "requests", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00420", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(status, level, code, type)\n shipments(value, status, date, type)\nTask: Find name from orders where a matching record exists in shipments with the same level.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "shipments", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "name", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00421", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(value, status, amount, id)\n tasks(level, date, id, type)\nTask: Retrieve amount from products with amount above the MIN(amount) of tasks rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE amount > (\n SELECT MIN(amount) FROM tasks AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "tasks", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00422", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(value, type, date, level)\n categories(value, type, name, status)\nTask: Retrieve name from branches with value above the SUM(amount) of categories rows sharing the same type.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE value > (\n SELECT SUM(amount) FROM categories AS catg\n WHERE catg.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "categories", "outer_alias": "brc", "inner_alias": "catg", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00423", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(value, name, date, code)\n sales(value, type, amount, code)\nTask: Find salary from staff where a matching record exists in sales with the same id.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "sales", "outer_alias": "empl", "inner_alias": "sale", "proj_col": "salary", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00424", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(type, name, code, id)\n accounts(salary, amount, id, code)\nTask: Find value from shipments where id appears in accounts entries with matching level.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE id IN (\n SELECT id FROM accounts AS acct\n WHERE acct.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "accounts", "outer_alias": "shp", "inner_alias": "acct", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00425", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(status, salary, name, level)\n items(salary, amount, id, value)\nTask: Find code from sales where value exceeds the count of salary from items for the same id.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE value > (\n SELECT COUNT(salary) FROM items AS lne\n WHERE lne.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "items", "outer_alias": "sale", "inner_alias": "lne", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00426", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(name, date, salary, level)\n departments(level, salary, code, id)\nTask: Find id from sales where status appears in departments entries with matching id.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE status IN (\n SELECT status FROM departments AS dept\n WHERE dept.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "departments", "outer_alias": "sale", "inner_alias": "dept", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00427", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(type, date, amount, value)\n customers(amount, id, level, status)\nTask: Find salary from staff where type appears in customers entries with matching level.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "customers", "outer_alias": "empl", "inner_alias": "cust", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00428", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(status, id, code, level)\n customers(salary, type, id, name)\nTask: Retrieve id from regions that have at least one corresponding entry in customers sharing the same level.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "customers", "outer_alias": "rgn", "inner_alias": "cust", "proj_col": "id", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00429", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(code, salary, amount, status)\n staff(value, level, status, amount)\nTask: Find code from requests where a matching record exists in staff with the same code.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "staff", "outer_alias": "ordr", "inner_alias": "empl", "proj_col": "code", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00430", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(code, level, date, name)\n accounts(status, salary, level, code)\nTask: Retrieve salary from orders that have at least one corresponding entry in accounts sharing the same code.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "accounts", "outer_alias": "ord", "inner_alias": "acct", "proj_col": "salary", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00431", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(name, id, type, code)\n orders(amount, status, value, code)\nTask: Retrieve code from invoices that have at least one corresponding entry in orders sharing the same status.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "orders", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00432", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(salary, code, name, id)\n sales(id, code, level, value)\nTask: Find id from items where a matching record exists in sales with the same level.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "sales", "outer_alias": "lne", "inner_alias": "sale", "proj_col": "id", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00433", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(status, name, code, id)\n transactions(level, salary, code, name)\nTask: Retrieve salary from orders that have at least one corresponding entry in transactions sharing the same type.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00434", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(type, amount, value, level)\n items(type, status, id, amount)\nTask: Retrieve value from orders with salary above the SUM(amount) of items rows sharing the same type.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE salary > (\n SELECT SUM(amount) FROM items AS lne\n WHERE lne.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00435", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(salary, amount, status, code)\n categories(type, amount, value, level)\nTask: Retrieve code from sales with amount above the COUNT(amount) of categories rows sharing the same code.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE amount > (\n SELECT COUNT(amount) FROM categories AS catg\n WHERE catg.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "categories", "outer_alias": "sale", "inner_alias": "catg", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00436", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(name, date, type, level)\n products(value, date, amount, name)\nTask: Retrieve amount from regions whose status is found in products rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00437", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(salary, value, amount, code)\n sales(status, value, code, name)\nTask: Retrieve amount from accounts with value above the MIN(salary) of sales rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE value > (\n SELECT MIN(salary) FROM sales AS sale\n WHERE sale.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "sales", "outer_alias": "acct", "inner_alias": "sale", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00438", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(status, salary, value, amount)\n departments(status, code, id, name)\nTask: Find amount from regions where code appears in departments entries with matching status.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "departments", "outer_alias": "rgn", "inner_alias": "dept", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00439", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(status, code, name, id)\n departments(amount, salary, type, date)\nTask: Retrieve code from tasks that have at least one corresponding entry in departments sharing the same type.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "departments", "outer_alias": "tsk", "inner_alias": "dept", "proj_col": "code", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00440", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(type, code, id, amount)\n transactions(value, code, type, id)\nTask: Select id from employees where level exists in transactions for the same id.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "transactions", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00441", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(name, date, value, salary)\n schedules(salary, amount, name, level)\nTask: Find amount from tasks where value exceeds the average amount from schedules for the same type.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE value > (\n SELECT AVG(amount) FROM schedules AS schd\n WHERE schd.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "schedules", "outer_alias": "tsk", "inner_alias": "schd", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00442", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(status, salary, type, level)\n staff(id, amount, code, name)\nTask: Retrieve name from branches with amount above the AVG(amount) of staff rows sharing the same id.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE amount > (\n SELECT AVG(amount) FROM staff AS empl\n WHERE empl.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "staff", "outer_alias": "brc", "inner_alias": "empl", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00443", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(level, amount, code, type)\n customers(status, code, salary, amount)\nTask: Find value from sales where value exceeds the average salary from customers for the same level.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE value > (\n SELECT AVG(salary) FROM customers AS cust\n WHERE cust.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "customers", "outer_alias": "sale", "inner_alias": "cust", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00444", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(status, amount, name, date)\n shipments(status, code, level, id)\nTask: Find id from accounts where a matching record exists in shipments with the same code.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "shipments", "outer_alias": "acct", "inner_alias": "shp", "proj_col": "id", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00445", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(type, id, value, name)\n items(amount, level, date, status)\nTask: Select name from sales where id exists in items for the same code.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "items", "outer_alias": "sale", "inner_alias": "lne", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00446", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(amount, value, level, type)\n products(type, status, salary, value)\nTask: Retrieve value from managers with value above the MAX(salary) of products rows sharing the same level.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE value > (\n SELECT MAX(salary) FROM products AS prod\n WHERE prod.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00447", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(amount, type, code, value)\n staff(status, amount, salary, id)\nTask: Find code from orders where a matching record exists in staff with the same status.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "staff", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00448", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(id, level, code, date)\n requests(amount, level, salary, id)\nTask: Retrieve code from managers whose code is found in requests rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00449", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(code, salary, date, status)\n sales(code, value, name, amount)\nTask: Find code from branches where value exceeds the maximum amount from sales for the same status.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE value > (\n SELECT MAX(amount) FROM sales AS sale\n WHERE sale.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "sales", "outer_alias": "brc", "inner_alias": "sale", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00450", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(type, status, amount, code)\n regions(type, status, amount, date)\nTask: Retrieve amount from schedules with value above the SUM(value) of regions rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE value > (\n SELECT SUM(value) FROM regions AS rgn\n WHERE rgn.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00451", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(value, date, code, id)\n invoices(level, type, id, status)\nTask: Find id from customers where value exceeds the total amount from invoices for the same code.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE value > (\n SELECT SUM(amount) FROM invoices AS inv\n WHERE inv.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00452", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(level, status, type, date)\n requests(amount, type, level, salary)\nTask: Retrieve salary from schedules with value above the AVG(salary) of requests rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE value > (\n SELECT AVG(salary) FROM requests AS ordr\n WHERE ordr.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "requests", "outer_alias": "schd", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00453", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(status, salary, id, value)\n invoices(date, amount, type, name)\nTask: Find salary from items where level appears in invoices entries with matching code.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE level IN (\n SELECT level FROM invoices AS inv\n WHERE inv.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "invoices", "outer_alias": "lne", "inner_alias": "inv", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00454", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(amount, value, status, date)\n managers(date, status, amount, code)\nTask: Find salary from shipments where amount exceeds the count of value from managers for the same level.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE amount > (\n SELECT COUNT(value) FROM managers AS mgr\n WHERE mgr.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "managers", "outer_alias": "shp", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00455", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(code, id, salary, level)\n departments(value, amount, code, id)\nTask: Retrieve salary from shipments whose level is found in departments rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "departments", "outer_alias": "shp", "inner_alias": "dept", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00456", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(level, name, status, salary)\n items(amount, date, code, name)\nTask: Retrieve name from staff whose type is found in items rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "items", "outer_alias": "empl", "inner_alias": "lne", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00457", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(value, salary, name, amount)\n shipments(date, name, id, level)\nTask: Find value from invoices where a matching record exists in shipments with the same type.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00458", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(code, amount, id, level)\n customers(amount, type, level, date)\nTask: Find salary from transactions where a matching record exists in customers with the same code.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "customers", "outer_alias": "txn", "inner_alias": "cust", "proj_col": "salary", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00459", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(amount, name, salary, value)\n items(level, status, date, type)\nTask: Find code from shipments where salary exceeds the total salary from items for the same id.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE salary > (\n SELECT SUM(salary) FROM items AS lne\n WHERE lne.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "items", "outer_alias": "shp", "inner_alias": "lne", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00460", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(code, status, id, date)\n regions(value, date, status, salary)\nTask: Find code from orders where salary exceeds the maximum salary from regions for the same type.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE salary > (\n SELECT MAX(salary) FROM regions AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "regions", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00461", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(salary, amount, status, id)\n categories(name, status, level, id)\nTask: Select salary from orders where status exists in categories for the same status.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE status IN (\n SELECT status FROM categories AS catg\n WHERE catg.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "categories", "outer_alias": "ord", "inner_alias": "catg", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00462", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(amount, type, code, name)\n accounts(id, code, status, value)\nTask: Find id from managers where code appears in accounts entries with matching id.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "accounts", "outer_alias": "mgr", "inner_alias": "acct", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00463", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(salary, level, name, status)\n managers(value, amount, name, type)\nTask: Retrieve id from schedules whose code is found in managers rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM managers AS mgr\n WHERE mgr.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00464", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(id, name, status, salary)\n projects(id, date, type, value)\nTask: Retrieve name from accounts with value above the SUM(amount) of projects rows sharing the same status.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE value > (\n SELECT SUM(amount) FROM projects AS prj\n WHERE prj.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "projects", "outer_alias": "acct", "inner_alias": "prj", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00465", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(amount, date, value, name)\n departments(code, salary, name, status)\nTask: Find id from invoices where code appears in departments entries with matching code.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "departments", "outer_alias": "inv", "inner_alias": "dept", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00466", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(level, name, value, type)\n invoices(salary, value, type, status)\nTask: Find id from employees where status appears in invoices entries with matching type.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE status IN (\n SELECT status FROM invoices AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00467", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(value, level, type, status)\n branches(value, type, salary, name)\nTask: Retrieve name from products whose type is found in branches rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE type IN (\n SELECT type FROM branches AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "branches", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00468", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(level, salary, id, type)\n invoices(amount, date, type, id)\nTask: Retrieve id from requests whose code is found in invoices rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM invoices AS inv\n WHERE inv.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "invoices", "outer_alias": "ordr", "inner_alias": "inv", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00469", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(status, value, date, salary)\n schedules(id, date, type, name)\nTask: Retrieve salary from transactions whose id is found in schedules rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "schedules", "outer_alias": "txn", "inner_alias": "schd", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00470", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(type, name, date, amount)\n customers(code, date, value, level)\nTask: Retrieve amount from regions with value above the MAX(amount) of customers rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE value > (\n SELECT MAX(amount) FROM customers AS cust\n WHERE cust.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "customers", "outer_alias": "rgn", "inner_alias": "cust", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00471", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(code, salary, value, id)\n branches(level, date, value, type)\nTask: Find value from employees where type appears in branches entries with matching type.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE type IN (\n SELECT type FROM branches AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "branches", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00472", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(type, name, level, code)\n managers(code, id, name, status)\nTask: Retrieve code from employees whose level is found in managers rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00473", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(name, code, level, date)\n projects(code, date, type, amount)\nTask: Find code from orders where a matching record exists in projects with the same code.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "projects", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00474", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(status, salary, name, amount)\n employees(level, value, name, code)\nTask: Select salary from staff where type exists in employees for the same code.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00475", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(name, amount, salary, code)\n regions(name, status, amount, date)\nTask: Retrieve value from branches whose status is found in regions rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE status IN (\n SELECT status FROM regions AS rgn\n WHERE rgn.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "regions", "outer_alias": "brc", "inner_alias": "rgn", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00476", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(date, level, code, amount)\n customers(salary, type, date, name)\nTask: Select code from shipments where code exists in customers for the same id.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00477", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(amount, value, status, id)\n transactions(code, amount, date, salary)\nTask: Retrieve code from tasks whose status is found in transactions rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE status IN (\n SELECT status FROM transactions AS txn\n WHERE txn.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "transactions", "outer_alias": "tsk", "inner_alias": "txn", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00478", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(level, value, type, id)\n invoices(status, salary, value, type)\nTask: Retrieve id from employees with amount above the MIN(value) of invoices rows sharing the same type.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE amount > (\n SELECT MIN(value) FROM invoices AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00479", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(status, id, date, name)\n categories(date, value, type, code)\nTask: Select name from staff where type exists in categories for the same status.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE type IN (\n SELECT type FROM categories AS catg\n WHERE catg.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "categories", "outer_alias": "empl", "inner_alias": "catg", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00480", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(value, status, name, level)\n requests(date, status, name, salary)\nTask: Find value from accounts where amount exceeds the average salary from requests for the same code.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE amount > (\n SELECT AVG(salary) FROM requests AS ordr\n WHERE ordr.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "requests", "outer_alias": "acct", "inner_alias": "ordr", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00481", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(salary, status, id, code)\n staff(code, status, id, amount)\nTask: Retrieve salary from accounts that have at least one corresponding entry in staff sharing the same id.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "salary", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00482", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(type, level, code, salary)\n regions(status, value, id, amount)\nTask: Find salary from shipments where value exceeds the minimum value from regions for the same code.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE value > (\n SELECT MIN(value) FROM regions AS rgn\n WHERE rgn.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "regions", "outer_alias": "shp", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00483", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(value, date, amount, level)\n customers(name, level, code, amount)\nTask: Retrieve code from tasks that have at least one corresponding entry in customers sharing the same code.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "customers", "outer_alias": "tsk", "inner_alias": "cust", "proj_col": "code", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00484", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(status, type, amount, id)\n projects(code, id, name, amount)\nTask: Retrieve id from invoices that have at least one corresponding entry in projects sharing the same level.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "projects", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00485", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(name, amount, value, date)\n orders(salary, amount, level, value)\nTask: Find amount from invoices where salary exceeds the count of value from orders for the same level.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE salary > (\n SELECT COUNT(value) FROM orders AS ord\n WHERE ord.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "orders", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00486", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(level, type, date, value)\n accounts(id, level, salary, name)\nTask: Retrieve code from employees with amount above the AVG(amount) of accounts rows sharing the same type.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE amount > (\n SELECT AVG(amount) FROM accounts AS acct\n WHERE acct.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "accounts", "outer_alias": "emp", "inner_alias": "acct", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00487", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(value, name, type, date)\n schedules(salary, amount, value, id)\nTask: Retrieve amount from tasks whose id is found in schedules rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "schedules", "outer_alias": "tsk", "inner_alias": "schd", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00488", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(id, date, code, name)\n requests(salary, value, id, name)\nTask: Find name from sales where a matching record exists in requests with the same code.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "requests", "outer_alias": "sale", "inner_alias": "ordr", "proj_col": "name", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00489", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(amount, name, id, type)\n regions(salary, value, id, level)\nTask: Retrieve code from schedules with value above the MAX(value) of regions rows sharing the same code.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE value > (\n SELECT MAX(value) FROM regions AS rgn\n WHERE rgn.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00490", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(name, id, level, status)\n items(amount, type, salary, status)\nTask: Find salary from categories where amount exceeds the total salary from items for the same id.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE amount > (\n SELECT SUM(salary) FROM items AS lne\n WHERE lne.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00491", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(date, name, value, id)\n tasks(status, salary, value, id)\nTask: Retrieve code from regions that have at least one corresponding entry in tasks sharing the same level.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "tasks", "outer_alias": "rgn", "inner_alias": "tsk", "proj_col": "code", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00492", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(type, date, amount, name)\n invoices(value, code, name, id)\nTask: Find id from staff where a matching record exists in invoices with the same code.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "invoices", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00493", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(id, code, status, level)\n projects(salary, id, code, status)\nTask: Select salary from orders where id exists in projects for the same id.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "projects", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00494", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(status, level, value, amount)\n branches(status, name, type, amount)\nTask: Find code from customers where value exceeds the total amount from branches for the same status.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE value > (\n SELECT SUM(amount) FROM branches AS brc\n WHERE brc.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "branches", "outer_alias": "cust", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00495", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(level, status, id, name)\n sales(salary, level, id, status)\nTask: Find name from transactions where a matching record exists in sales with the same level.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "sales", "outer_alias": "txn", "inner_alias": "sale", "proj_col": "name", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00496", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(status, type, name, salary)\n shipments(value, amount, date, status)\nTask: Retrieve name from sales that have at least one corresponding entry in shipments sharing the same code.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "shipments", "outer_alias": "sale", "inner_alias": "shp", "proj_col": "name", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00497", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(status, name, type, value)\n staff(amount, value, code, salary)\nTask: Retrieve value from departments that have at least one corresponding entry in staff sharing the same status.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00498", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(name, type, amount, level)\n schedules(type, id, name, code)\nTask: Retrieve salary from shipments with amount above the MIN(amount) of schedules rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE amount > (\n SELECT MIN(amount) FROM schedules AS schd\n WHERE schd.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "schedules", "outer_alias": "shp", "inner_alias": "schd", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00499", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(id, level, type, name)\n transactions(salary, code, id, name)\nTask: Select code from categories where id exists in transactions for the same code.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE id IN (\n SELECT id FROM transactions AS txn\n WHERE txn.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "transactions", "outer_alias": "catg", "inner_alias": "txn", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00500", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(status, type, level, date)\n accounts(code, type, salary, name)\nTask: Find name from shipments where salary exceeds the minimum amount from accounts for the same status.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE salary > (\n SELECT MIN(amount) FROM accounts AS acct\n WHERE acct.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "accounts", "outer_alias": "shp", "inner_alias": "acct", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00501", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(salary, name, status, code)\n branches(value, date, level, name)\nTask: Retrieve amount from items that have at least one corresponding entry in branches sharing the same status.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "amount", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00502", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(type, value, level, id)\n employees(code, status, salary, name)\nTask: Find value from branches where a matching record exists in employees with the same status.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "employees", "outer_alias": "brc", "inner_alias": "emp", "proj_col": "value", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00503", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(date, code, name, value)\n regions(salary, status, amount, type)\nTask: Find salary from categories where value exceeds the minimum salary from regions for the same code.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE value > (\n SELECT MIN(salary) FROM regions AS rgn\n WHERE rgn.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00504", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(value, name, id, level)\n departments(date, status, value, code)\nTask: Retrieve code from accounts whose type is found in departments rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE type IN (\n SELECT type FROM departments AS dept\n WHERE dept.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "departments", "outer_alias": "acct", "inner_alias": "dept", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00505", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(status, name, type, salary)\n staff(level, value, name, code)\nTask: Find id from categories where a matching record exists in staff with the same code.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "staff", "outer_alias": "catg", "inner_alias": "empl", "proj_col": "id", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00506", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(type, salary, code, amount)\n sales(type, salary, id, code)\nTask: Find code from branches where a matching record exists in sales with the same type.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "sales", "outer_alias": "brc", "inner_alias": "sale", "proj_col": "code", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00507", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(code, id, level, name)\n customers(id, type, status, amount)\nTask: Select amount from accounts where type exists in customers for the same status.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "customers", "outer_alias": "acct", "inner_alias": "cust", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00508", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(date, value, status, id)\n employees(value, level, date, id)\nTask: Find amount from items where level appears in employees entries with matching id.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00509", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(salary, level, date, type)\n managers(type, date, status, salary)\nTask: Find value from tasks where amount exceeds the maximum value from managers for the same level.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE amount > (\n SELECT MAX(value) FROM managers AS mgr\n WHERE mgr.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "managers", "outer_alias": "tsk", "inner_alias": "mgr", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00510", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(type, amount, code, date)\n invoices(id, salary, date, level)\nTask: Find salary from customers where a matching record exists in invoices with the same status.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "salary", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00511", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(type, amount, id, level)\n requests(name, id, salary, status)\nTask: Find amount from accounts where a matching record exists in requests with the same id.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "requests", "outer_alias": "acct", "inner_alias": "ordr", "proj_col": "amount", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00512", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(salary, type, name, date)\n invoices(name, status, id, type)\nTask: Find name from shipments where amount exceeds the count of salary from invoices for the same level.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE amount > (\n SELECT COUNT(salary) FROM invoices AS inv\n WHERE inv.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "invoices", "outer_alias": "shp", "inner_alias": "inv", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00513", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(amount, name, code, type)\n departments(status, salary, code, date)\nTask: Retrieve code from schedules with salary above the AVG(amount) of departments rows sharing the same status.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE salary > (\n SELECT AVG(amount) FROM departments AS dept\n WHERE dept.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "departments", "outer_alias": "schd", "inner_alias": "dept", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00514", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(name, value, status, amount)\n employees(type, amount, id, code)\nTask: Retrieve salary from products whose status is found in employees rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "employees", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00515", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(salary, status, level, amount)\n employees(salary, type, date, name)\nTask: Retrieve amount from accounts with salary above the SUM(value) of employees rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE salary > (\n SELECT SUM(value) FROM employees AS emp\n WHERE emp.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "employees", "outer_alias": "acct", "inner_alias": "emp", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00516", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(salary, amount, type, date)\n projects(id, type, value, level)\nTask: Retrieve id from staff that have at least one corresponding entry in projects sharing the same id.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "projects", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00517", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(status, value, name, level)\n projects(id, value, status, code)\nTask: Retrieve amount from regions that have at least one corresponding entry in projects sharing the same status.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "projects", "outer_alias": "rgn", "inner_alias": "prj", "proj_col": "amount", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00518", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(level, date, type, name)\n projects(salary, date, id, code)\nTask: Retrieve value from employees whose level is found in projects rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "projects", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00519", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(salary, code, type, amount)\n items(amount, status, date, id)\nTask: Find code from products where amount exceeds the maximum value from items for the same id.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE amount > (\n SELECT MAX(value) FROM items AS lne\n WHERE lne.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "items", "outer_alias": "prod", "inner_alias": "lne", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00520", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(amount, date, status, level)\n categories(date, code, id, salary)\nTask: Retrieve id from managers with salary above the COUNT(salary) of categories rows sharing the same type.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE salary > (\n SELECT COUNT(salary) FROM categories AS catg\n WHERE catg.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "categories", "outer_alias": "mgr", "inner_alias": "catg", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00521", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(status, type, name, level)\n employees(type, status, code, value)\nTask: Find value from regions where a matching record exists in employees with the same level.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "value", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00522", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(type, code, status, salary)\n schedules(status, date, level, value)\nTask: Retrieve code from customers with amount above the MAX(value) of schedules rows sharing the same level.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE amount > (\n SELECT MAX(value) FROM schedules AS schd\n WHERE schd.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "schedules", "outer_alias": "cust", "inner_alias": "schd", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00523", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(date, status, type, value)\n items(salary, status, code, amount)\nTask: Retrieve id from customers whose level is found in items rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE level IN (\n SELECT level FROM items AS lne\n WHERE lne.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "items", "outer_alias": "cust", "inner_alias": "lne", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00524", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(status, id, salary, amount)\n projects(name, id, amount, date)\nTask: Retrieve code from products whose code is found in projects rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "projects", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00525", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(type, value, level, salary)\n requests(salary, type, level, name)\nTask: Find code from products where id appears in requests entries with matching id.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE id IN (\n SELECT id FROM requests AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "requests", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00526", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(type, value, date, code)\n tasks(level, status, code, amount)\nTask: Retrieve name from items with value above the AVG(salary) of tasks rows sharing the same code.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE value > (\n SELECT AVG(salary) FROM tasks AS tsk\n WHERE tsk.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "tasks", "outer_alias": "lne", "inner_alias": "tsk", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00527", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(salary, status, amount, id)\n projects(level, value, name, id)\nTask: Retrieve id from managers that have at least one corresponding entry in projects sharing the same code.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "projects", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00528", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(value, name, amount, salary)\n items(level, name, code, salary)\nTask: Find amount from shipments where a matching record exists in items with the same code.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "items", "outer_alias": "shp", "inner_alias": "lne", "proj_col": "amount", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00529", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(date, value, id, name)\n departments(status, date, level, amount)\nTask: Find name from projects where value exceeds the total salary from departments for the same code.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE value > (\n SELECT SUM(salary) FROM departments AS dept\n WHERE dept.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "departments", "outer_alias": "prj", "inner_alias": "dept", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00530", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(date, code, type, status)\n customers(status, type, date, level)\nTask: Retrieve id from staff whose type is found in customers rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "customers", "outer_alias": "empl", "inner_alias": "cust", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00531", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(type, code, id, amount)\n sales(type, date, value, name)\nTask: Find name from products where salary exceeds the total amount from sales for the same level.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE salary > (\n SELECT SUM(amount) FROM sales AS sale\n WHERE sale.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "sales", "outer_alias": "prod", "inner_alias": "sale", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00532", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(level, salary, amount, id)\n accounts(value, type, date, level)\nTask: Retrieve salary from managers that have at least one corresponding entry in accounts sharing the same status.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "accounts", "outer_alias": "mgr", "inner_alias": "acct", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00533", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(level, salary, name, value)\n managers(code, date, level, value)\nTask: Retrieve salary from branches whose level is found in managers rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00534", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(type, salary, id, level)\n requests(name, id, status, date)\nTask: Retrieve code from sales that have at least one corresponding entry in requests sharing the same status.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "requests", "outer_alias": "sale", "inner_alias": "ordr", "proj_col": "code", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00535", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(level, type, salary, name)\n products(name, id, level, salary)\nTask: Retrieve amount from branches that have at least one corresponding entry in products sharing the same status.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "products", "outer_alias": "brc", "inner_alias": "prod", "proj_col": "amount", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00536", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(salary, amount, type, date)\n requests(status, salary, name, amount)\nTask: Select code from projects where type exists in requests for the same level.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00537", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(amount, id, date, level)\n invoices(amount, salary, status, level)\nTask: Find id from regions where a matching record exists in invoices with the same level.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "invoices", "outer_alias": "rgn", "inner_alias": "inv", "proj_col": "id", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00538", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(salary, id, type, code)\n sales(date, amount, value, id)\nTask: Select salary from transactions where status exists in sales for the same level.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "sales", "outer_alias": "txn", "inner_alias": "sale", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00539", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(date, salary, code, value)\n products(salary, type, code, id)\nTask: Retrieve name from tasks whose level is found in products rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "products", "outer_alias": "tsk", "inner_alias": "prod", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00540", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(name, id, amount, value)\n branches(level, name, id, date)\nTask: Retrieve salary from tasks that have at least one corresponding entry in branches sharing the same status.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "branches", "outer_alias": "tsk", "inner_alias": "brc", "proj_col": "salary", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00541", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(level, type, salary, status)\n categories(amount, type, code, date)\nTask: Find id from schedules where salary exceeds the count of amount from categories for the same status.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE salary > (\n SELECT COUNT(amount) FROM categories AS catg\n WHERE catg.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "categories", "outer_alias": "schd", "inner_alias": "catg", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00542", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(date, status, id, code)\n products(salary, id, type, level)\nTask: Retrieve value from departments with amount above the COUNT(value) of products rows sharing the same type.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE amount > (\n SELECT COUNT(value) FROM products AS prod\n WHERE prod.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "products", "outer_alias": "dept", "inner_alias": "prod", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00543", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(date, name, level, salary)\n products(amount, code, status, salary)\nTask: Select code from regions where status exists in products for the same status.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00544", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(amount, id, value, code)\n projects(id, amount, value, type)\nTask: Select name from items where level exists in projects for the same code.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "projects", "outer_alias": "lne", "inner_alias": "prj", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00545", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(value, salary, level, type)\n shipments(code, value, date, name)\nTask: Retrieve value from invoices with value above the AVG(amount) of shipments rows sharing the same level.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE value > (\n SELECT AVG(amount) FROM shipments AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00546", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(date, level, name, id)\n employees(value, amount, salary, type)\nTask: Retrieve value from regions that have at least one corresponding entry in employees sharing the same status.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "value", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00547", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(name, amount, level, value)\n categories(status, code, date, id)\nTask: Retrieve amount from employees with value above the COUNT(amount) of categories rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE value > (\n SELECT COUNT(amount) FROM categories AS catg\n WHERE catg.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "categories", "outer_alias": "emp", "inner_alias": "catg", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00548", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(amount, salary, code, level)\n accounts(value, level, salary, name)\nTask: Retrieve value from managers that have at least one corresponding entry in accounts sharing the same level.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "accounts", "outer_alias": "mgr", "inner_alias": "acct", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00549", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(date, type, code, id)\n orders(type, name, level, status)\nTask: Find salary from customers where a matching record exists in orders with the same status.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "orders", "outer_alias": "cust", "inner_alias": "ord", "proj_col": "salary", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00550", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(salary, type, status, amount)\n products(status, code, level, amount)\nTask: Retrieve name from managers with amount above the MIN(salary) of products rows sharing the same type.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE amount > (\n SELECT MIN(salary) FROM products AS prod\n WHERE prod.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00551", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, name, id, status)\n transactions(type, level, status, date)\nTask: Retrieve value from regions with amount above the MIN(amount) of transactions rows sharing the same level.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE amount > (\n SELECT MIN(amount) FROM transactions AS txn\n WHERE txn.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "transactions", "outer_alias": "rgn", "inner_alias": "txn", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00552", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(value, amount, status, id)\n projects(salary, value, date, name)\nTask: Find id from customers where a matching record exists in projects with the same type.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "projects", "outer_alias": "cust", "inner_alias": "prj", "proj_col": "id", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00553", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(status, salary, value, id)\n branches(salary, level, status, name)\nTask: Find name from orders where amount exceeds the maximum amount from branches for the same code.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE amount > (\n SELECT MAX(amount) FROM branches AS brc\n WHERE brc.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "branches", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00554", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(status, type, level, amount)\n items(salary, type, date, id)\nTask: Find code from staff where status appears in items entries with matching level.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "items", "outer_alias": "empl", "inner_alias": "lne", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00555", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(salary, value, date, name)\n accounts(amount, status, level, name)\nTask: Retrieve value from branches that have at least one corresponding entry in accounts sharing the same code.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "accounts", "outer_alias": "brc", "inner_alias": "acct", "proj_col": "value", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00556", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(type, name, level, amount)\n employees(code, date, level, id)\nTask: Find amount from orders where a matching record exists in employees with the same id.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00557", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(name, salary, status, level)\n categories(type, code, id, salary)\nTask: Retrieve value from staff whose id is found in categories rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "categories", "outer_alias": "empl", "inner_alias": "catg", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00558", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(code, value, amount, status)\n departments(id, type, name, code)\nTask: Retrieve amount from staff whose type is found in departments rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE type IN (\n SELECT type FROM departments AS dept\n WHERE dept.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "departments", "outer_alias": "empl", "inner_alias": "dept", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00559", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(id, type, amount, level)\n categories(id, value, name, date)\nTask: Find name from schedules where a matching record exists in categories with the same type.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "categories", "outer_alias": "schd", "inner_alias": "catg", "proj_col": "name", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00560", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(value, code, type, amount)\n schedules(name, amount, id, date)\nTask: Select code from regions where level exists in schedules for the same status.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE level IN (\n SELECT level FROM schedules AS schd\n WHERE schd.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "schedules", "outer_alias": "rgn", "inner_alias": "schd", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00561", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(amount, id, level, type)\n employees(status, id, salary, amount)\nTask: Find code from transactions where a matching record exists in employees with the same code.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "code", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00562", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(date, level, name, salary)\n departments(name, salary, code, status)\nTask: Retrieve name from regions with value above the MAX(salary) of departments rows sharing the same type.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE value > (\n SELECT MAX(salary) FROM departments AS dept\n WHERE dept.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "departments", "outer_alias": "rgn", "inner_alias": "dept", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00563", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(name, code, level, status)\n staff(id, date, code, level)\nTask: Retrieve amount from accounts that have at least one corresponding entry in staff sharing the same id.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "amount", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00564", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(salary, amount, code, name)\n customers(level, salary, amount, status)\nTask: Find id from managers where salary exceeds the average value from customers for the same code.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE salary > (\n SELECT AVG(value) FROM customers AS cust\n WHERE cust.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "customers", "outer_alias": "mgr", "inner_alias": "cust", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00565", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(value, amount, id, name)\n branches(name, level, amount, code)\nTask: Retrieve code from projects whose level is found in branches rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "branches", "outer_alias": "prj", "inner_alias": "brc", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00566", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(type, id, status, salary)\n sales(type, name, status, code)\nTask: Retrieve salary from requests with value above the MAX(value) of sales rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE value > (\n SELECT MAX(value) FROM sales AS sale\n WHERE sale.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "sales", "outer_alias": "ordr", "inner_alias": "sale", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00567", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(name, value, salary, status)\n customers(id, status, date, level)\nTask: Retrieve id from invoices whose type is found in customers rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "customers", "outer_alias": "inv", "inner_alias": "cust", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00568", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(level, id, name, date)\n regions(level, id, code, salary)\nTask: Find salary from orders where a matching record exists in regions with the same level.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "regions", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "salary", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00569", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(type, level, salary, value)\n projects(salary, status, date, value)\nTask: Retrieve value from managers that have at least one corresponding entry in projects sharing the same code.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "projects", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00570", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(value, level, id, status)\n transactions(name, level, salary, code)\nTask: Find salary from accounts where id appears in transactions entries with matching type.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM transactions AS txn\n WHERE txn.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "transactions", "outer_alias": "acct", "inner_alias": "txn", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00571", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(level, id, salary, date)\n shipments(status, id, type, code)\nTask: Retrieve value from projects that have at least one corresponding entry in shipments sharing the same code.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "shipments", "outer_alias": "prj", "inner_alias": "shp", "proj_col": "value", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00572", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(code, id, value, amount)\n accounts(status, amount, value, id)\nTask: Retrieve id from shipments that have at least one corresponding entry in accounts sharing the same code.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "accounts", "outer_alias": "shp", "inner_alias": "acct", "proj_col": "id", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00573", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(salary, code, type, date)\n schedules(date, value, code, salary)\nTask: Retrieve amount from transactions whose id is found in schedules rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "schedules", "outer_alias": "txn", "inner_alias": "schd", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00574", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(status, date, value, type)\n products(value, salary, name, amount)\nTask: Retrieve salary from requests with salary above the AVG(amount) of products rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE salary > (\n SELECT AVG(amount) FROM products AS prod\n WHERE prod.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "products", "outer_alias": "ordr", "inner_alias": "prod", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00575", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(id, salary, code, type)\n departments(level, id, salary, value)\nTask: Find name from customers where value exceeds the maximum amount from departments for the same level.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE value > (\n SELECT MAX(amount) FROM departments AS dept\n WHERE dept.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "departments", "outer_alias": "cust", "inner_alias": "dept", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00576", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(amount, status, level, id)\n transactions(status, code, amount, salary)\nTask: Retrieve value from employees with amount above the COUNT(amount) of transactions rows sharing the same level.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM transactions AS txn\n WHERE txn.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "transactions", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00577", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(status, level, id, name)\n shipments(date, code, name, status)\nTask: Find salary from tasks where status appears in shipments entries with matching code.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE status IN (\n SELECT status FROM shipments AS shp\n WHERE shp.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "shipments", "outer_alias": "tsk", "inner_alias": "shp", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00578", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(date, name, id, code)\n tasks(code, level, salary, amount)\nTask: Find amount from departments where level appears in tasks entries with matching level.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE level IN (\n SELECT level FROM tasks AS tsk\n WHERE tsk.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00579", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(salary, level, date, id)\n orders(name, type, salary, value)\nTask: Find salary from invoices where a matching record exists in orders with the same status.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "orders", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "salary", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00580", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(date, type, value, status)\n categories(name, value, date, amount)\nTask: Find id from managers where value exceeds the average value from categories for the same code.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE value > (\n SELECT AVG(value) FROM categories AS catg\n WHERE catg.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "categories", "outer_alias": "mgr", "inner_alias": "catg", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00581", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(salary, name, id, status)\n products(salary, type, id, level)\nTask: Find id from regions where value exceeds the minimum salary from products for the same code.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE value > (\n SELECT MIN(salary) FROM products AS prod\n WHERE prod.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00582", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(name, status, value, code)\n shipments(type, level, name, salary)\nTask: Find name from projects where a matching record exists in shipments with the same level.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "shipments", "outer_alias": "prj", "inner_alias": "shp", "proj_col": "name", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00583", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(level, id, amount, code)\n regions(salary, type, code, name)\nTask: Select salary from sales where id exists in regions for the same id.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "regions", "outer_alias": "sale", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00584", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(date, status, type, id)\n managers(type, value, amount, code)\nTask: Retrieve code from requests that have at least one corresponding entry in managers sharing the same type.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "managers", "outer_alias": "ordr", "inner_alias": "mgr", "proj_col": "code", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00585", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(id, amount, code, status)\n departments(status, code, name, type)\nTask: Find code from projects where code appears in departments entries with matching status.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "departments", "outer_alias": "prj", "inner_alias": "dept", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00586", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(amount, value, salary, id)\n shipments(status, salary, type, id)\nTask: Retrieve salary from tasks that have at least one corresponding entry in shipments sharing the same status.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "shipments", "outer_alias": "tsk", "inner_alias": "shp", "proj_col": "salary", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00587", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(level, amount, code, value)\n staff(name, amount, value, salary)\nTask: Find id from sales where type appears in staff entries with matching level.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "staff", "outer_alias": "sale", "inner_alias": "empl", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00588", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(code, type, id, date)\n branches(amount, value, type, level)\nTask: Retrieve salary from schedules that have at least one corresponding entry in branches sharing the same id.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "branches", "outer_alias": "schd", "inner_alias": "brc", "proj_col": "salary", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00589", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(amount, status, value, date)\n tasks(name, level, id, salary)\nTask: Find name from products where amount exceeds the minimum value from tasks for the same id.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE amount > (\n SELECT MIN(value) FROM tasks AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "tasks", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00590", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(type, name, id, date)\n items(salary, amount, name, code)\nTask: Find amount from products where id appears in items entries with matching type.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "items", "outer_alias": "prod", "inner_alias": "lne", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00591", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(value, code, name, date)\n transactions(code, value, id, name)\nTask: Retrieve salary from departments whose code is found in transactions rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "transactions", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00592", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(date, salary, status, code)\n staff(code, amount, id, name)\nTask: Retrieve id from orders that have at least one corresponding entry in staff sharing the same status.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "staff", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00593", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(code, id, status, value)\n departments(value, id, date, amount)\nTask: Find amount from items where id appears in departments entries with matching level.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE id IN (\n SELECT id FROM departments AS dept\n WHERE dept.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "departments", "outer_alias": "lne", "inner_alias": "dept", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00594", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(type, value, code, id)\n departments(code, date, amount, status)\nTask: Retrieve salary from items with amount above the SUM(amount) of departments rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE amount > (\n SELECT SUM(amount) FROM departments AS dept\n WHERE dept.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "departments", "outer_alias": "lne", "inner_alias": "dept", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00595", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(name, amount, value, type)\n categories(salary, code, id, amount)\nTask: Find amount from requests where level appears in categories entries with matching code.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "categories", "outer_alias": "ordr", "inner_alias": "catg", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00596", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(id, date, status, level)\n employees(type, code, amount, value)\nTask: Find name from customers where a matching record exists in employees with the same status.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "name", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00597", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(salary, code, date, type)\n categories(value, status, type, amount)\nTask: Find amount from tasks where value exceeds the total amount from categories for the same level.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE value > (\n SELECT SUM(amount) FROM categories AS catg\n WHERE catg.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "categories", "outer_alias": "tsk", "inner_alias": "catg", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00598", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(type, name, code, date)\n transactions(name, amount, value, date)\nTask: Find id from staff where status appears in transactions entries with matching type.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE status IN (\n SELECT status FROM transactions AS txn\n WHERE txn.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "transactions", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00599", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(salary, id, code, amount)\n employees(status, code, value, date)\nTask: Retrieve salary from tasks that have at least one corresponding entry in employees sharing the same status.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "employees", "outer_alias": "tsk", "inner_alias": "emp", "proj_col": "salary", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00600", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(salary, id, level, value)\n tasks(salary, level, name, code)\nTask: Retrieve name from customers that have at least one corresponding entry in tasks sharing the same id.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "tasks", "outer_alias": "cust", "inner_alias": "tsk", "proj_col": "name", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00601", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(code, amount, type, salary)\n managers(id, value, name, status)\nTask: Find amount from regions where a matching record exists in managers with the same id.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "managers", "outer_alias": "rgn", "inner_alias": "mgr", "proj_col": "amount", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00602", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(name, code, status, salary)\n employees(amount, code, status, value)\nTask: Retrieve id from orders that have at least one corresponding entry in employees sharing the same code.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00603", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(type, amount, name, id)\n orders(date, value, salary, type)\nTask: Find amount from employees where id appears in orders entries with matching code.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE id IN (\n SELECT id FROM orders AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "orders", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00604", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(code, salary, status, level)\n shipments(amount, salary, id, name)\nTask: Retrieve amount from categories that have at least one corresponding entry in shipments sharing the same code.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "shipments", "outer_alias": "catg", "inner_alias": "shp", "proj_col": "amount", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00605", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(value, code, status, id)\n shipments(type, level, name, status)\nTask: Retrieve value from transactions with salary above the SUM(amount) of shipments rows sharing the same level.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE salary > (\n SELECT SUM(amount) FROM shipments AS shp\n WHERE shp.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "shipments", "outer_alias": "txn", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00606", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(status, id, amount, date)\n projects(type, salary, value, date)\nTask: Retrieve code from transactions that have at least one corresponding entry in projects sharing the same id.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "code", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00607", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(status, code, salary, level)\n categories(type, code, amount, status)\nTask: Find amount from transactions where a matching record exists in categories with the same status.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "categories", "outer_alias": "txn", "inner_alias": "catg", "proj_col": "amount", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00608", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(status, value, code, amount)\n orders(value, status, amount, salary)\nTask: Find amount from categories where a matching record exists in orders with the same code.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "orders", "outer_alias": "catg", "inner_alias": "ord", "proj_col": "amount", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00609", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(status, name, type, level)\n products(type, id, value, level)\nTask: Retrieve name from tasks that have at least one corresponding entry in products sharing the same status.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "products", "outer_alias": "tsk", "inner_alias": "prod", "proj_col": "name", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00610", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(level, value, id, amount)\n schedules(type, id, value, amount)\nTask: Select amount from managers where type exists in schedules for the same level.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "schedules", "outer_alias": "mgr", "inner_alias": "schd", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00611", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(code, date, name, status)\n orders(value, type, code, id)\nTask: Find name from schedules where a matching record exists in orders with the same id.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "orders", "outer_alias": "schd", "inner_alias": "ord", "proj_col": "name", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00612", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(status, date, type, value)\n employees(level, amount, id, code)\nTask: Retrieve value from orders with amount above the AVG(amount) of employees rows sharing the same status.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE amount > (\n SELECT AVG(amount) FROM employees AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00613", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(level, status, value, salary)\n tasks(code, level, status, value)\nTask: Retrieve code from customers that have at least one corresponding entry in tasks sharing the same code.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "tasks", "outer_alias": "cust", "inner_alias": "tsk", "proj_col": "code", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00614", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(code, type, level, salary)\n transactions(value, level, status, date)\nTask: Find salary from regions where type appears in transactions entries with matching status.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM transactions AS txn\n WHERE txn.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "transactions", "outer_alias": "rgn", "inner_alias": "txn", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00615", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(salary, date, type, code)\n branches(value, status, date, level)\nTask: Find code from invoices where a matching record exists in branches with the same type.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "branches", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00616", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(id, code, name, salary)\n sales(level, name, id, status)\nTask: Retrieve name from shipments with salary above the MAX(amount) of sales rows sharing the same status.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE salary > (\n SELECT MAX(amount) FROM sales AS sale\n WHERE sale.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "sales", "outer_alias": "shp", "inner_alias": "sale", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00617", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(name, amount, level, value)\n schedules(level, salary, code, date)\nTask: Retrieve code from projects with amount above the MAX(value) of schedules rows sharing the same id.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE amount > (\n SELECT MAX(value) FROM schedules AS schd\n WHERE schd.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "schedules", "outer_alias": "prj", "inner_alias": "schd", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00618", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(code, id, level, status)\n projects(amount, name, date, salary)\nTask: Retrieve code from customers whose id is found in projects rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "projects", "outer_alias": "cust", "inner_alias": "prj", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00619", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(code, level, salary, status)\n tasks(type, level, value, salary)\nTask: Retrieve name from branches whose code is found in tasks rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE code IN (\n SELECT code FROM tasks AS tsk\n WHERE tsk.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00620", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(status, amount, date, name)\n shipments(code, id, name, status)\nTask: Find name from staff where value exceeds the minimum salary from shipments for the same type.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE value > (\n SELECT MIN(salary) FROM shipments AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00621", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(salary, date, amount, value)\n requests(value, level, date, code)\nTask: Find name from transactions where amount exceeds the average amount from requests for the same level.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE amount > (\n SELECT AVG(amount) FROM requests AS ordr\n WHERE ordr.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "requests", "outer_alias": "txn", "inner_alias": "ordr", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00622", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(code, value, name, level)\n regions(id, salary, status, amount)\nTask: Find id from orders where id appears in regions entries with matching status.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "regions", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00623", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(value, type, code, status)\n staff(level, code, amount, salary)\nTask: Find name from shipments where a matching record exists in staff with the same code.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "staff", "outer_alias": "shp", "inner_alias": "empl", "proj_col": "name", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00624", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(value, salary, type, id)\n requests(salary, code, id, type)\nTask: Retrieve salary from orders that have at least one corresponding entry in requests sharing the same type.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "requests", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00625", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(type, value, status, date)\n sales(date, level, name, id)\nTask: Retrieve value from items whose status is found in sales rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "sales", "outer_alias": "lne", "inner_alias": "sale", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00626", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(code, id, status, amount)\n invoices(id, type, level, salary)\nTask: Find id from schedules where type appears in invoices entries with matching code.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "invoices", "outer_alias": "schd", "inner_alias": "inv", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00627", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(level, date, code, status)\n tasks(salary, status, type, value)\nTask: Retrieve value from invoices that have at least one corresponding entry in tasks sharing the same id.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00628", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(amount, date, value, code)\n tasks(code, salary, amount, value)\nTask: Select salary from projects where status exists in tasks for the same type.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE status IN (\n SELECT status FROM tasks AS tsk\n WHERE tsk.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "tasks", "outer_alias": "prj", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00629", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(status, level, code, date)\n customers(amount, id, date, type)\nTask: Find code from branches where a matching record exists in customers with the same code.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "customers", "outer_alias": "brc", "inner_alias": "cust", "proj_col": "code", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00630", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(status, value, amount, salary)\n products(type, salary, id, amount)\nTask: Retrieve id from items with value above the COUNT(value) of products rows sharing the same id.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE value > (\n SELECT COUNT(value) FROM products AS prod\n WHERE prod.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "products", "outer_alias": "lne", "inner_alias": "prod", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00631", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(name, type, salary, amount)\n schedules(level, date, status, amount)\nTask: Retrieve id from invoices with salary above the MAX(amount) of schedules rows sharing the same status.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE salary > (\n SELECT MAX(amount) FROM schedules AS schd\n WHERE schd.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00632", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(code, date, type, name)\n staff(type, date, salary, status)\nTask: Retrieve value from products with amount above the AVG(amount) of staff rows sharing the same level.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE amount > (\n SELECT AVG(amount) FROM staff AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00633", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(id, code, amount, level)\n transactions(amount, type, salary, name)\nTask: Find value from customers where a matching record exists in transactions with the same level.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "transactions", "outer_alias": "cust", "inner_alias": "txn", "proj_col": "value", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00634", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(salary, level, status, code)\n invoices(code, name, id, level)\nTask: Find value from accounts where code appears in invoices entries with matching level.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE code IN (\n SELECT code FROM invoices AS inv\n WHERE inv.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "invoices", "outer_alias": "acct", "inner_alias": "inv", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00635", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(code, amount, value, salary)\n managers(type, name, amount, value)\nTask: Retrieve amount from orders with salary above the MAX(amount) of managers rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE salary > (\n SELECT MAX(amount) FROM managers AS mgr\n WHERE mgr.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "managers", "outer_alias": "ord", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00636", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(name, date, level, type)\n categories(status, date, amount, value)\nTask: Find value from transactions where value exceeds the average amount from categories for the same type.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE value > (\n SELECT AVG(amount) FROM categories AS catg\n WHERE catg.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "categories", "outer_alias": "txn", "inner_alias": "catg", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00637", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(id, status, name, salary)\n branches(id, code, status, date)\nTask: Select value from departments where code exists in branches for the same id.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "branches", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00638", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(value, id, status, date)\n tasks(code, value, amount, id)\nTask: Find amount from managers where code appears in tasks entries with matching code.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM tasks AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "tasks", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00639", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(date, id, code, name)\n tasks(salary, level, value, amount)\nTask: Retrieve salary from requests that have at least one corresponding entry in tasks sharing the same code.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "tasks", "outer_alias": "ordr", "inner_alias": "tsk", "proj_col": "salary", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00640", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(level, status, value, amount)\n managers(name, salary, amount, date)\nTask: Retrieve code from staff that have at least one corresponding entry in managers sharing the same type.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "managers", "outer_alias": "empl", "inner_alias": "mgr", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00641", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(status, code, id, name)\n accounts(value, level, name, code)\nTask: Find salary from customers where a matching record exists in accounts with the same level.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "accounts", "outer_alias": "cust", "inner_alias": "acct", "proj_col": "salary", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00642", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(name, id, code, type)\n requests(code, amount, type, date)\nTask: Retrieve id from shipments that have at least one corresponding entry in requests sharing the same level.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "requests", "outer_alias": "shp", "inner_alias": "ordr", "proj_col": "id", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00643", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(type, date, id, status)\n orders(status, salary, name, code)\nTask: Retrieve salary from staff that have at least one corresponding entry in orders sharing the same code.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "orders", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00644", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(code, name, level, type)\n invoices(status, id, level, code)\nTask: Find amount from schedules where value exceeds the average amount from invoices for the same level.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE value > (\n SELECT AVG(amount) FROM invoices AS inv\n WHERE inv.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "invoices", "outer_alias": "schd", "inner_alias": "inv", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00645", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(value, type, status, name)\n employees(type, status, level, name)\nTask: Find salary from requests where salary exceeds the average value from employees for the same code.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE salary > (\n SELECT AVG(value) FROM employees AS emp\n WHERE emp.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "employees", "outer_alias": "ordr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00646", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(status, value, date, name)\n products(date, id, status, salary)\nTask: Find code from shipments where amount exceeds the count of value from products for the same type.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE amount > (\n SELECT COUNT(value) FROM products AS prod\n WHERE prod.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00647", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(salary, code, status, name)\n products(amount, code, name, level)\nTask: Find name from staff where value exceeds the count of amount from products for the same code.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE value > (\n SELECT COUNT(amount) FROM products AS prod\n WHERE prod.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "products", "outer_alias": "empl", "inner_alias": "prod", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00648", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(status, date, salary, type)\n regions(salary, amount, value, level)\nTask: Find amount from sales where value exceeds the average amount from regions for the same level.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE value > (\n SELECT AVG(amount) FROM regions AS rgn\n WHERE rgn.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "regions", "outer_alias": "sale", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00649", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(type, salary, code, amount)\n shipments(amount, value, name, status)\nTask: Retrieve name from transactions with value above the AVG(salary) of shipments rows sharing the same code.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE value > (\n SELECT AVG(salary) FROM shipments AS shp\n WHERE shp.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "shipments", "outer_alias": "txn", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00650", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(status, code, level, date)\n items(status, amount, salary, code)\nTask: Find amount from managers where a matching record exists in items with the same status.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "items", "outer_alias": "mgr", "inner_alias": "lne", "proj_col": "amount", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00651", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(status, type, date, salary)\n schedules(value, date, id, level)\nTask: Retrieve name from managers with salary above the MIN(value) of schedules rows sharing the same level.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE salary > (\n SELECT MIN(value) FROM schedules AS schd\n WHERE schd.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "schedules", "outer_alias": "mgr", "inner_alias": "schd", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00652", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(name, id, code, level)\n tasks(level, name, amount, type)\nTask: Find code from regions where value exceeds the count of value from tasks for the same status.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE value > (\n SELECT COUNT(value) FROM tasks AS tsk\n WHERE tsk.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "tasks", "outer_alias": "rgn", "inner_alias": "tsk", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00653", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(date, code, id, name)\n products(type, date, level, salary)\nTask: Find code from invoices where a matching record exists in products with the same status.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "products", "outer_alias": "inv", "inner_alias": "prod", "proj_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00654", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(type, salary, name, id)\n tasks(amount, level, id, status)\nTask: Find name from accounts where amount exceeds the total value from tasks for the same status.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE amount > (\n SELECT SUM(value) FROM tasks AS tsk\n WHERE tsk.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "tasks", "outer_alias": "acct", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00655", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(value, salary, date, code)\n orders(code, date, status, name)\nTask: Retrieve salary from departments whose code is found in orders rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE code IN (\n SELECT code FROM orders AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "orders", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00656", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(value, name, date, salary)\n sales(status, id, name, amount)\nTask: Find code from projects where level appears in sales entries with matching level.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE level IN (\n SELECT level FROM sales AS sale\n WHERE sale.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "sales", "outer_alias": "prj", "inner_alias": "sale", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00657", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(type, status, code, level)\n invoices(value, name, salary, type)\nTask: Find value from branches where a matching record exists in invoices with the same type.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "invoices", "outer_alias": "brc", "inner_alias": "inv", "proj_col": "value", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00658", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(status, date, type, code)\n transactions(level, id, name, date)\nTask: Find code from tasks where amount exceeds the minimum amount from transactions for the same id.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE amount > (\n SELECT MIN(amount) FROM transactions AS txn\n WHERE txn.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "transactions", "outer_alias": "tsk", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00659", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(id, code, type, date)\n invoices(value, type, id, amount)\nTask: Find amount from departments where a matching record exists in invoices with the same level.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "invoices", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00660", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(salary, status, level, date)\n branches(level, id, name, date)\nTask: Find id from schedules where a matching record exists in branches with the same level.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "branches", "outer_alias": "schd", "inner_alias": "brc", "proj_col": "id", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00661", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(amount, type, code, id)\n managers(level, name, status, salary)\nTask: Select value from orders where code exists in managers for the same type.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE code IN (\n SELECT code FROM managers AS mgr\n WHERE mgr.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "managers", "outer_alias": "ord", "inner_alias": "mgr", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00662", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(date, code, level, amount)\n sales(type, amount, salary, status)\nTask: Retrieve salary from requests that have at least one corresponding entry in sales sharing the same level.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "sales", "outer_alias": "ordr", "inner_alias": "sale", "proj_col": "salary", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00663", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(date, salary, status, value)\n schedules(level, id, status, amount)\nTask: Retrieve salary from staff that have at least one corresponding entry in schedules sharing the same level.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "schedules", "outer_alias": "empl", "inner_alias": "schd", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00664", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(code, type, value, amount)\n staff(salary, type, id, date)\nTask: Retrieve name from orders whose code is found in staff rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE code IN (\n SELECT code FROM staff AS empl\n WHERE empl.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "staff", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00665", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(status, amount, code, name)\n regions(value, name, salary, amount)\nTask: Find code from projects where a matching record exists in regions with the same status.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "regions", "outer_alias": "prj", "inner_alias": "rgn", "proj_col": "code", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00666", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(value, code, name, id)\n staff(date, status, code, amount)\nTask: Retrieve name from accounts whose code is found in staff rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE code IN (\n SELECT code FROM staff AS empl\n WHERE empl.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00667", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(level, type, value, amount)\n sales(code, type, date, value)\nTask: Find code from staff where a matching record exists in sales with the same id.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "sales", "outer_alias": "empl", "inner_alias": "sale", "proj_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00668", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(type, value, name, date)\n requests(type, date, level, id)\nTask: Retrieve salary from sales that have at least one corresponding entry in requests sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "requests", "outer_alias": "sale", "inner_alias": "ordr", "proj_col": "salary", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00669", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(name, type, value, date)\n items(id, value, amount, salary)\nTask: Find code from schedules where level appears in items entries with matching type.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM items AS lne\n WHERE lne.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00670", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(level, name, value, id)\n categories(value, status, id, type)\nTask: Retrieve code from items that have at least one corresponding entry in categories sharing the same status.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "code", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00671", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(value, date, type, status)\n staff(id, salary, type, name)\nTask: Retrieve id from invoices with amount above the AVG(value) of staff rows sharing the same id.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE amount > (\n SELECT AVG(value) FROM staff AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "staff", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00672", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(id, code, salary, amount)\n accounts(salary, name, type, level)\nTask: Retrieve value from branches that have at least one corresponding entry in accounts sharing the same id.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "accounts", "outer_alias": "brc", "inner_alias": "acct", "proj_col": "value", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00673", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(level, amount, type, date)\n products(value, date, amount, type)\nTask: Retrieve name from customers whose code is found in products rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE code IN (\n SELECT code FROM products AS prod\n WHERE prod.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "products", "outer_alias": "cust", "inner_alias": "prod", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00674", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(type, date, level, value)\n categories(id, amount, level, name)\nTask: Find id from customers where a matching record exists in categories with the same code.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "categories", "outer_alias": "cust", "inner_alias": "catg", "proj_col": "id", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00675", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(type, status, id, amount)\n orders(name, amount, code, date)\nTask: Retrieve value from regions that have at least one corresponding entry in orders sharing the same status.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "orders", "outer_alias": "rgn", "inner_alias": "ord", "proj_col": "value", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00676", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(value, level, name, amount)\n staff(status, code, level, salary)\nTask: Find id from sales where a matching record exists in staff with the same level.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "staff", "outer_alias": "sale", "inner_alias": "empl", "proj_col": "id", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00677", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(amount, id, level, salary)\n customers(type, date, salary, id)\nTask: Retrieve id from invoices with value above the COUNT(salary) of customers rows sharing the same level.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE value > (\n SELECT COUNT(salary) FROM customers AS cust\n WHERE cust.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "customers", "outer_alias": "inv", "inner_alias": "cust", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00678", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(salary, id, amount, name)\n staff(salary, type, code, date)\nTask: Select code from shipments where status exists in staff for the same status.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "staff", "outer_alias": "shp", "inner_alias": "empl", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00679", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(amount, date, name, code)\n transactions(name, date, level, value)\nTask: Find value from managers where a matching record exists in transactions with the same type.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "transactions", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "value", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00680", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(value, id, date, status)\n staff(salary, type, code, amount)\nTask: Find amount from departments where id appears in staff entries with matching code.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE id IN (\n SELECT id FROM staff AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00681", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(value, type, salary, status)\n invoices(amount, salary, status, name)\nTask: Retrieve id from items with salary above the MIN(value) of invoices rows sharing the same level.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE salary > (\n SELECT MIN(value) FROM invoices AS inv\n WHERE inv.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "invoices", "outer_alias": "lne", "inner_alias": "inv", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00682", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(id, status, salary, value)\n invoices(date, code, salary, name)\nTask: Find name from accounts where a matching record exists in invoices with the same id.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "invoices", "outer_alias": "acct", "inner_alias": "inv", "proj_col": "name", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00683", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(salary, id, type, amount)\n customers(value, date, code, id)\nTask: Find amount from shipments where a matching record exists in customers with the same status.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "amount", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00684", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(value, name, date, id)\n invoices(level, id, name, type)\nTask: Find name from staff where type appears in invoices entries with matching type.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "invoices", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00685", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(type, date, name, salary)\n schedules(level, type, value, code)\nTask: Retrieve amount from requests with value above the COUNT(salary) of schedules rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE value > (\n SELECT COUNT(salary) FROM schedules AS schd\n WHERE schd.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "schedules", "outer_alias": "ordr", "inner_alias": "schd", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00686", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(status, salary, name, id)\n shipments(status, type, code, date)\nTask: Retrieve id from regions that have at least one corresponding entry in shipments sharing the same status.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "shipments", "outer_alias": "rgn", "inner_alias": "shp", "proj_col": "id", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00687", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(code, salary, status, level)\n invoices(date, type, status, value)\nTask: Retrieve code from customers that have at least one corresponding entry in invoices sharing the same level.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "code", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00688", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(name, type, id, level)\n sales(value, name, code, amount)\nTask: Find salary from categories where amount exceeds the total amount from sales for the same level.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE amount > (\n SELECT SUM(amount) FROM sales AS sale\n WHERE sale.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "sales", "outer_alias": "catg", "inner_alias": "sale", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00689", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(amount, status, value, date)\n customers(type, value, amount, salary)\nTask: Retrieve amount from items that have at least one corresponding entry in customers sharing the same type.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "customers", "outer_alias": "lne", "inner_alias": "cust", "proj_col": "amount", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00690", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(code, level, date, type)\n schedules(status, name, level, type)\nTask: Retrieve id from requests that have at least one corresponding entry in schedules sharing the same status.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "schedules", "outer_alias": "ordr", "inner_alias": "schd", "proj_col": "id", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00691", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(id, type, status, amount)\n departments(date, id, level, type)\nTask: Find name from branches where status appears in departments entries with matching status.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE status IN (\n SELECT status FROM departments AS dept\n WHERE dept.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "departments", "outer_alias": "brc", "inner_alias": "dept", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00692", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(salary, value, type, id)\n orders(id, type, level, amount)\nTask: Find name from departments where salary exceeds the total amount from orders for the same type.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE salary > (\n SELECT SUM(amount) FROM orders AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "orders", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00693", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(type, status, salary, value)\n requests(name, status, type, level)\nTask: Retrieve value from tasks that have at least one corresponding entry in requests sharing the same id.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "value", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00694", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(type, value, amount, id)\n branches(name, status, id, code)\nTask: Retrieve name from items whose code is found in branches rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00695", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(value, date, amount, type)\n invoices(date, level, status, type)\nTask: Find id from branches where amount exceeds the count of amount from invoices for the same type.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE amount > (\n SELECT COUNT(amount) FROM invoices AS inv\n WHERE inv.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "invoices", "outer_alias": "brc", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00696", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(salary, name, value, id)\n transactions(id, code, level, type)\nTask: Select name from schedules where code exists in transactions for the same code.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "transactions", "outer_alias": "schd", "inner_alias": "txn", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00697", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(status, code, name, id)\n projects(code, level, value, status)\nTask: Retrieve code from managers whose id is found in projects rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "projects", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00698", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(level, name, salary, status)\n branches(date, type, value, salary)\nTask: Select id from categories where level exists in branches for the same level.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00699", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(salary, amount, type, value)\n schedules(status, amount, id, date)\nTask: Retrieve value from accounts that have at least one corresponding entry in schedules sharing the same level.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "schedules", "outer_alias": "acct", "inner_alias": "schd", "proj_col": "value", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00700", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(level, amount, status, id)\n transactions(value, type, status, name)\nTask: Find salary from projects where a matching record exists in transactions with the same level.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "transactions", "outer_alias": "prj", "inner_alias": "txn", "proj_col": "salary", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00701", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(status, value, date, level)\n invoices(id, amount, status, name)\nTask: Find name from schedules where salary exceeds the minimum amount from invoices for the same id.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE salary > (\n SELECT MIN(amount) FROM invoices AS inv\n WHERE inv.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "invoices", "outer_alias": "schd", "inner_alias": "inv", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00702", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(date, status, level, value)\n regions(salary, amount, value, code)\nTask: Find name from categories where a matching record exists in regions with the same level.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "name", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00703", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(date, value, salary, level)\n schedules(type, date, status, name)\nTask: Find amount from shipments where value exceeds the minimum salary from schedules for the same type.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE value > (\n SELECT MIN(salary) FROM schedules AS schd\n WHERE schd.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "schedules", "outer_alias": "shp", "inner_alias": "schd", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00704", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(code, type, salary, value)\n schedules(level, type, code, amount)\nTask: Retrieve id from categories with amount above the MAX(salary) of schedules rows sharing the same level.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE amount > (\n SELECT MAX(salary) FROM schedules AS schd\n WHERE schd.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "schedules", "outer_alias": "catg", "inner_alias": "schd", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00705", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(level, status, amount, name)\n accounts(id, date, name, level)\nTask: Find value from categories where value exceeds the average amount from accounts for the same level.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE value > (\n SELECT AVG(amount) FROM accounts AS acct\n WHERE acct.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "accounts", "outer_alias": "catg", "inner_alias": "acct", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00706", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(status, level, name, id)\n customers(id, level, date, amount)\nTask: Find name from employees where level appears in customers entries with matching status.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "customers", "outer_alias": "emp", "inner_alias": "cust", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00707", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(name, type, level, value)\n projects(code, id, name, amount)\nTask: Find name from requests where amount exceeds the minimum amount from projects for the same type.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE amount > (\n SELECT MIN(amount) FROM projects AS prj\n WHERE prj.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "projects", "outer_alias": "ordr", "inner_alias": "prj", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00708", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(name, id, level, code)\n accounts(code, salary, level, date)\nTask: Find amount from tasks where status appears in accounts entries with matching level.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE status IN (\n SELECT status FROM accounts AS acct\n WHERE acct.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "accounts", "outer_alias": "tsk", "inner_alias": "acct", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00709", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(name, date, status, code)\n transactions(id, amount, date, name)\nTask: Retrieve salary from departments that have at least one corresponding entry in transactions sharing the same id.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "transactions", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00710", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(id, salary, amount, status)\n shipments(salary, value, type, date)\nTask: Retrieve code from orders with amount above the AVG(value) of shipments rows sharing the same type.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE amount > (\n SELECT AVG(value) FROM shipments AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "shipments", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00711", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(value, status, id, type)\n shipments(amount, id, status, code)\nTask: Find salary from staff where a matching record exists in shipments with the same type.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00712", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(code, id, date, level)\n sales(code, status, id, name)\nTask: Find code from invoices where salary exceeds the minimum amount from sales for the same status.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE salary > (\n SELECT MIN(amount) FROM sales AS sale\n WHERE sale.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "sales", "outer_alias": "inv", "inner_alias": "sale", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00713", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(id, date, salary, code)\n regions(name, id, value, level)\nTask: Find salary from products where a matching record exists in regions with the same code.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00714", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(type, name, id, status)\n invoices(name, date, code, type)\nTask: Select code from products where level exists in invoices for the same code.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE level IN (\n SELECT level FROM invoices AS inv\n WHERE inv.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "invoices", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00715", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(date, level, type, salary)\n tasks(date, code, value, salary)\nTask: Find value from accounts where value exceeds the minimum amount from tasks for the same status.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE value > (\n SELECT MIN(amount) FROM tasks AS tsk\n WHERE tsk.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "tasks", "outer_alias": "acct", "inner_alias": "tsk", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00716", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(status, amount, name, value)\n categories(code, type, amount, status)\nTask: Retrieve name from shipments that have at least one corresponding entry in categories sharing the same id.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "categories", "outer_alias": "shp", "inner_alias": "catg", "proj_col": "name", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00717", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(level, id, name, value)\n schedules(type, name, id, value)\nTask: Find name from projects where a matching record exists in schedules with the same id.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "schedules", "outer_alias": "prj", "inner_alias": "schd", "proj_col": "name", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00718", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(status, date, value, name)\n requests(level, status, name, code)\nTask: Find id from schedules where salary exceeds the minimum salary from requests for the same status.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE salary > (\n SELECT MIN(salary) FROM requests AS ordr\n WHERE ordr.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "requests", "outer_alias": "schd", "inner_alias": "ordr", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00719", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(id, date, name, type)\n departments(salary, code, status, level)\nTask: Retrieve code from staff with salary above the MAX(value) of departments rows sharing the same status.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE salary > (\n SELECT MAX(value) FROM departments AS dept\n WHERE dept.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "departments", "outer_alias": "empl", "inner_alias": "dept", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00720", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(status, date, code, value)\n tasks(salary, code, type, status)\nTask: Retrieve value from departments with salary above the MIN(salary) of tasks rows sharing the same code.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE salary > (\n SELECT MIN(salary) FROM tasks AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00721", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(code, id, status, salary)\n projects(date, type, value, level)\nTask: Retrieve name from departments that have at least one corresponding entry in projects sharing the same type.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "projects", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00722", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(status, id, date, code)\n transactions(name, value, salary, code)\nTask: Retrieve amount from regions with amount above the MIN(value) of transactions rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE amount > (\n SELECT MIN(value) FROM transactions AS txn\n WHERE txn.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "transactions", "outer_alias": "rgn", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00723", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(amount, id, type, name)\n requests(amount, code, id, type)\nTask: Retrieve id from schedules that have at least one corresponding entry in requests sharing the same id.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "requests", "outer_alias": "schd", "inner_alias": "ordr", "proj_col": "id", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00724", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(level, id, code, type)\n requests(id, amount, level, code)\nTask: Find amount from sales where type appears in requests entries with matching status.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "requests", "outer_alias": "sale", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00725", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(value, type, date, level)\n categories(value, id, type, status)\nTask: Find salary from items where a matching record exists in categories with the same id.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "salary", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00726", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(amount, name, status, id)\n accounts(status, type, date, amount)\nTask: Find code from customers where amount exceeds the maximum value from accounts for the same type.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE amount > (\n SELECT MAX(value) FROM accounts AS acct\n WHERE acct.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "accounts", "outer_alias": "cust", "inner_alias": "acct", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00727", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(status, id, code, date)\n branches(amount, status, code, name)\nTask: Retrieve value from schedules that have at least one corresponding entry in branches sharing the same status.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "branches", "outer_alias": "schd", "inner_alias": "brc", "proj_col": "value", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00728", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(amount, type, level, date)\n projects(salary, id, status, code)\nTask: Find id from transactions where salary exceeds the maximum amount from projects for the same type.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE salary > (\n SELECT MAX(amount) FROM projects AS prj\n WHERE prj.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00729", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(name, level, type, status)\n items(code, salary, type, id)\nTask: Find amount from products where a matching record exists in items with the same level.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "items", "outer_alias": "prod", "inner_alias": "lne", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00730", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(name, status, id, amount)\n schedules(salary, name, level, id)\nTask: Retrieve name from accounts whose level is found in schedules rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM schedules AS schd\n WHERE schd.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "schedules", "outer_alias": "acct", "inner_alias": "schd", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00731", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(status, code, date, amount)\n requests(status, id, amount, code)\nTask: Select name from accounts where level exists in requests for the same level.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM requests AS ordr\n WHERE ordr.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "requests", "outer_alias": "acct", "inner_alias": "ordr", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00732", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(code, salary, name, date)\n schedules(code, amount, value, level)\nTask: Retrieve code from items whose code is found in schedules rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE code IN (\n SELECT code FROM schedules AS schd\n WHERE schd.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "schedules", "outer_alias": "lne", "inner_alias": "schd", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00733", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(date, name, id, amount)\n branches(date, id, status, type)\nTask: Retrieve value from transactions whose type is found in branches rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE type IN (\n SELECT type FROM branches AS brc\n WHERE brc.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "branches", "outer_alias": "txn", "inner_alias": "brc", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00734", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(id, date, status, name)\n employees(status, name, id, level)\nTask: Find salary from departments where a matching record exists in employees with the same status.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "employees", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00735", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(salary, type, date, code)\n shipments(status, amount, code, date)\nTask: Retrieve name from customers that have at least one corresponding entry in shipments sharing the same level.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "shipments", "outer_alias": "cust", "inner_alias": "shp", "proj_col": "name", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00736", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(level, date, status, amount)\n orders(amount, salary, date, name)\nTask: Retrieve name from departments with value above the SUM(value) of orders rows sharing the same type.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE value > (\n SELECT SUM(value) FROM orders AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "orders", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00737", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(code, id, salary, value)\n tasks(date, value, salary, type)\nTask: Retrieve value from items whose status is found in tasks rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE status IN (\n SELECT status FROM tasks AS tsk\n WHERE tsk.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "tasks", "outer_alias": "lne", "inner_alias": "tsk", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00738", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(name, level, salary, status)\n customers(code, id, name, type)\nTask: Retrieve salary from items that have at least one corresponding entry in customers sharing the same code.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "customers", "outer_alias": "lne", "inner_alias": "cust", "proj_col": "salary", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00739", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(level, status, type, name)\n regions(salary, code, status, date)\nTask: Find code from invoices where a matching record exists in regions with the same code.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "regions", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00740", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(code, salary, amount, level)\n employees(level, id, name, date)\nTask: Find value from orders where level appears in employees entries with matching status.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00741", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(code, date, salary, amount)\n requests(type, amount, id, name)\nTask: Retrieve code from tasks that have at least one corresponding entry in requests sharing the same level.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "code", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00742", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(value, date, type, salary)\n departments(salary, level, id, amount)\nTask: Retrieve code from products with amount above the MAX(salary) of departments rows sharing the same code.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE amount > (\n SELECT MAX(salary) FROM departments AS dept\n WHERE dept.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "departments", "outer_alias": "prod", "inner_alias": "dept", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00743", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(date, code, amount, status)\n orders(amount, id, status, value)\nTask: Find id from managers where a matching record exists in orders with the same level.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "orders", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00744", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(id, type, status, date)\n projects(name, value, code, amount)\nTask: Retrieve salary from employees with salary above the MIN(value) of projects rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE salary > (\n SELECT MIN(value) FROM projects AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "projects", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00745", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(id, status, value, salary)\n shipments(status, value, date, amount)\nTask: Retrieve id from tasks that have at least one corresponding entry in shipments sharing the same status.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "shipments", "outer_alias": "tsk", "inner_alias": "shp", "proj_col": "id", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00746", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(value, date, level, status)\n categories(value, salary, id, name)\nTask: Retrieve amount from tasks that have at least one corresponding entry in categories sharing the same id.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "categories", "outer_alias": "tsk", "inner_alias": "catg", "proj_col": "amount", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00747", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(id, name, code, value)\n tasks(name, salary, value, status)\nTask: Find amount from regions where amount exceeds the maximum salary from tasks for the same type.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE amount > (\n SELECT MAX(salary) FROM tasks AS tsk\n WHERE tsk.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "tasks", "outer_alias": "rgn", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00748", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(type, amount, level, status)\n items(level, amount, id, status)\nTask: Retrieve amount from managers whose level is found in items rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE level IN (\n SELECT level FROM items AS lne\n WHERE lne.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "items", "outer_alias": "mgr", "inner_alias": "lne", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00749", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(date, id, value, salary)\n sales(amount, value, status, code)\nTask: Retrieve id from transactions whose code is found in sales rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM sales AS sale\n WHERE sale.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "sales", "outer_alias": "txn", "inner_alias": "sale", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00750", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(name, salary, code, status)\n orders(id, salary, date, name)\nTask: Retrieve amount from transactions whose code is found in orders rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM orders AS ord\n WHERE ord.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "orders", "outer_alias": "txn", "inner_alias": "ord", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00751", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(date, code, status, name)\n invoices(amount, status, id, value)\nTask: Find id from employees where code appears in invoices entries with matching status.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE code IN (\n SELECT code FROM invoices AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00752", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(id, level, salary, date)\n orders(amount, code, name, id)\nTask: Retrieve code from sales whose status is found in orders rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE status IN (\n SELECT status FROM orders AS ord\n WHERE ord.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "orders", "outer_alias": "sale", "inner_alias": "ord", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00753", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(code, date, name, id)\n departments(salary, status, level, date)\nTask: Find name from invoices where code appears in departments entries with matching id.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "departments", "outer_alias": "inv", "inner_alias": "dept", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00754", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(code, salary, amount, level)\n shipments(code, level, id, amount)\nTask: Find code from sales where amount exceeds the minimum amount from shipments for the same code.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE amount > (\n SELECT MIN(amount) FROM shipments AS shp\n WHERE shp.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "shipments", "outer_alias": "sale", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00755", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(date, amount, salary, id)\n employees(status, name, value, salary)\nTask: Find code from tasks where salary exceeds the average salary from employees for the same status.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE salary > (\n SELECT AVG(salary) FROM employees AS emp\n WHERE emp.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "employees", "outer_alias": "tsk", "inner_alias": "emp", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00756", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(status, id, code, amount)\n transactions(name, level, date, type)\nTask: Find amount from orders where amount exceeds the total amount from transactions for the same type.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE amount > (\n SELECT SUM(amount) FROM transactions AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00757", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(amount, value, id, type)\n transactions(level, salary, code, type)\nTask: Retrieve salary from orders that have at least one corresponding entry in transactions sharing the same status.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "salary", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00758", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(code, amount, name, status)\n accounts(type, level, code, amount)\nTask: Retrieve id from requests whose code is found in accounts rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "accounts", "outer_alias": "ordr", "inner_alias": "acct", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00759", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(id, date, level, name)\n transactions(salary, value, type, date)\nTask: Find amount from branches where salary exceeds the maximum value from transactions for the same level.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE salary > (\n SELECT MAX(value) FROM transactions AS txn\n WHERE txn.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "transactions", "outer_alias": "brc", "inner_alias": "txn", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00760", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(salary, date, value, amount)\n shipments(status, type, amount, date)\nTask: Find amount from accounts where status appears in shipments entries with matching status.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE status IN (\n SELECT status FROM shipments AS shp\n WHERE shp.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "shipments", "outer_alias": "acct", "inner_alias": "shp", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00761", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(id, code, type, value)\n managers(amount, name, id, level)\nTask: Retrieve name from requests whose code is found in managers rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM managers AS mgr\n WHERE mgr.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "managers", "outer_alias": "ordr", "inner_alias": "mgr", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00762", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(type, status, salary, level)\n employees(name, status, id, level)\nTask: Retrieve name from departments whose level is found in employees rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "employees", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00763", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(salary, status, date, type)\n managers(salary, code, amount, name)\nTask: Retrieve name from items with value above the AVG(amount) of managers rows sharing the same type.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE value > (\n SELECT AVG(amount) FROM managers AS mgr\n WHERE mgr.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "managers", "outer_alias": "lne", "inner_alias": "mgr", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00764", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(status, type, code, value)\n categories(amount, value, code, status)\nTask: Select name from schedules where level exists in categories for the same type.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "categories", "outer_alias": "schd", "inner_alias": "catg", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00765", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(salary, value, id, code)\n staff(salary, date, status, id)\nTask: Find salary from transactions where amount exceeds the total amount from staff for the same level.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE amount > (\n SELECT SUM(amount) FROM staff AS empl\n WHERE empl.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "staff", "outer_alias": "txn", "inner_alias": "empl", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00766", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(date, status, type, amount)\n regions(id, salary, status, level)\nTask: Retrieve amount from categories that have at least one corresponding entry in regions sharing the same id.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "amount", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00767", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(status, amount, date, name)\n schedules(value, level, name, id)\nTask: Find amount from accounts where value exceeds the total salary from schedules for the same type.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE value > (\n SELECT SUM(salary) FROM schedules AS schd\n WHERE schd.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "schedules", "outer_alias": "acct", "inner_alias": "schd", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00768", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(type, name, salary, id)\n requests(name, code, salary, date)\nTask: Find name from items where a matching record exists in requests with the same code.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "requests", "outer_alias": "lne", "inner_alias": "ordr", "proj_col": "name", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00769", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(status, value, level, code)\n projects(code, amount, level, date)\nTask: Retrieve salary from shipments that have at least one corresponding entry in projects sharing the same id.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "projects", "outer_alias": "shp", "inner_alias": "prj", "proj_col": "salary", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00770", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(type, status, code, name)\n sales(salary, value, date, level)\nTask: Retrieve name from invoices whose id is found in sales rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM sales AS sale\n WHERE sale.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "sales", "outer_alias": "inv", "inner_alias": "sale", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00771", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(value, name, salary, amount)\n products(salary, status, name, id)\nTask: Find name from sales where a matching record exists in products with the same code.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "products", "outer_alias": "sale", "inner_alias": "prod", "proj_col": "name", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00772", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(type, level, value, code)\n schedules(salary, level, type, amount)\nTask: Retrieve id from items whose code is found in schedules rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE code IN (\n SELECT code FROM schedules AS schd\n WHERE schd.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "schedules", "outer_alias": "lne", "inner_alias": "schd", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00773", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(value, level, code, name)\n customers(salary, type, id, amount)\nTask: Find amount from products where a matching record exists in customers with the same status.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "customers", "outer_alias": "prod", "inner_alias": "cust", "proj_col": "amount", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00774", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(type, salary, id, name)\n projects(value, status, date, type)\nTask: Retrieve id from categories whose type is found in projects rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE type IN (\n SELECT type FROM projects AS prj\n WHERE prj.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "projects", "outer_alias": "catg", "inner_alias": "prj", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00775", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(type, status, name, salary)\n orders(value, id, amount, name)\nTask: Retrieve amount from employees that have at least one corresponding entry in orders sharing the same id.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "orders", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00776", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(type, status, level, date)\n tasks(amount, level, type, id)\nTask: Retrieve value from invoices with salary above the MIN(salary) of tasks rows sharing the same type.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM tasks AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00777", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(salary, type, amount, code)\n orders(date, status, type, value)\nTask: Find id from managers where a matching record exists in orders with the same id.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "orders", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00778", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(level, value, status, id)\n requests(salary, value, amount, code)\nTask: Retrieve salary from managers that have at least one corresponding entry in requests sharing the same type.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00779", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(code, id, status, level)\n departments(status, id, code, amount)\nTask: Find name from items where salary exceeds the maximum salary from departments for the same id.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE salary > (\n SELECT MAX(salary) FROM departments AS dept\n WHERE dept.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "departments", "outer_alias": "lne", "inner_alias": "dept", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00780", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(level, code, type, status)\n managers(value, level, status, code)\nTask: Find code from branches where code appears in managers entries with matching id.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE code IN (\n SELECT code FROM managers AS mgr\n WHERE mgr.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00781", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(code, level, name, type)\n employees(date, type, name, value)\nTask: Find amount from managers where a matching record exists in employees with the same type.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "employees", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "amount", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00782", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(salary, level, amount, date)\n categories(name, level, salary, amount)\nTask: Find value from employees where a matching record exists in categories with the same level.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "categories", "outer_alias": "emp", "inner_alias": "catg", "proj_col": "value", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00783", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(type, level, id, status)\n requests(code, salary, type, date)\nTask: Select name from customers where status exists in requests for the same type.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "requests", "outer_alias": "cust", "inner_alias": "ordr", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00784", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(date, type, amount, value)\n requests(salary, code, amount, name)\nTask: Select value from employees where level exists in requests for the same code.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE level IN (\n SELECT level FROM requests AS ordr\n WHERE ordr.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "requests", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00785", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(name, date, salary, value)\n accounts(salary, code, status, amount)\nTask: Retrieve amount from shipments that have at least one corresponding entry in accounts sharing the same id.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "accounts", "outer_alias": "shp", "inner_alias": "acct", "proj_col": "amount", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00786", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(date, amount, value, id)\n staff(value, name, type, date)\nTask: Select id from tasks where level exists in staff for the same status.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "staff", "outer_alias": "tsk", "inner_alias": "empl", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00787", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(status, value, code, amount)\n staff(value, status, salary, amount)\nTask: Find value from employees where a matching record exists in staff with the same status.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "staff", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00788", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(salary, code, status, date)\n invoices(value, type, name, amount)\nTask: Retrieve salary from transactions with amount above the COUNT(value) of invoices rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE amount > (\n SELECT COUNT(value) FROM invoices AS inv\n WHERE inv.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "invoices", "outer_alias": "txn", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00789", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(status, type, level, id)\n categories(date, level, name, type)\nTask: Select salary from transactions where code exists in categories for the same code.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM categories AS catg\n WHERE catg.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "categories", "outer_alias": "txn", "inner_alias": "catg", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00790", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(salary, level, date, amount)\n schedules(id, type, level, date)\nTask: Select value from customers where level exists in schedules for the same level.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE level IN (\n SELECT level FROM schedules AS schd\n WHERE schd.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "schedules", "outer_alias": "cust", "inner_alias": "schd", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00791", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(status, date, type, id)\n requests(value, amount, status, salary)\nTask: Retrieve salary from categories that have at least one corresponding entry in requests sharing the same type.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "requests", "outer_alias": "catg", "inner_alias": "ordr", "proj_col": "salary", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00792", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(status, amount, value, salary)\n regions(type, date, id, code)\nTask: Find id from schedules where amount exceeds the total amount from regions for the same level.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE amount > (\n SELECT SUM(amount) FROM regions AS rgn\n WHERE rgn.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00793", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(value, code, level, type)\n departments(salary, date, id, name)\nTask: Retrieve amount from shipments that have at least one corresponding entry in departments sharing the same type.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "departments", "outer_alias": "shp", "inner_alias": "dept", "proj_col": "amount", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00794", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(id, status, salary, level)\n managers(name, id, amount, salary)\nTask: Find amount from branches where a matching record exists in managers with the same status.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "amount", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00795", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(id, amount, level, value)\n employees(date, type, salary, id)\nTask: Select code from regions where code exists in employees for the same level.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00796", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(status, date, level, type)\n branches(amount, salary, type, name)\nTask: Find amount from regions where salary exceeds the minimum salary from branches for the same type.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE salary > (\n SELECT MIN(salary) FROM branches AS brc\n WHERE brc.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "branches", "outer_alias": "rgn", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00797", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(date, id, level, salary)\n managers(salary, type, level, date)\nTask: Select code from tasks where type exists in managers for the same status.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "managers", "outer_alias": "tsk", "inner_alias": "mgr", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00798", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(value, type, code, amount)\n products(value, status, id, date)\nTask: Find code from shipments where salary exceeds the minimum amount from products for the same level.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE salary > (\n SELECT MIN(amount) FROM products AS prod\n WHERE prod.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00799", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(type, status, id, level)\n orders(amount, type, name, code)\nTask: Find code from branches where value exceeds the average salary from orders for the same type.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE value > (\n SELECT AVG(salary) FROM orders AS ord\n WHERE ord.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "orders", "outer_alias": "brc", "inner_alias": "ord", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00800", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(name, value, amount, salary)\n regions(date, amount, name, code)\nTask: Retrieve amount from categories with value above the AVG(value) of regions rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE value > (\n SELECT AVG(value) FROM regions AS rgn\n WHERE rgn.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00801", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(type, date, salary, status)\n products(name, level, amount, status)\nTask: Find amount from branches where salary exceeds the total salary from products for the same id.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE salary > (\n SELECT SUM(salary) FROM products AS prod\n WHERE prod.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "products", "outer_alias": "brc", "inner_alias": "prod", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00802", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(date, amount, value, salary)\n projects(level, date, id, salary)\nTask: Retrieve id from sales with amount above the SUM(salary) of projects rows sharing the same id.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE amount > (\n SELECT SUM(salary) FROM projects AS prj\n WHERE prj.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "projects", "outer_alias": "sale", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00803", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(amount, id, date, type)\n products(value, code, level, id)\nTask: Retrieve id from transactions with amount above the MAX(value) of products rows sharing the same level.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE amount > (\n SELECT MAX(value) FROM products AS prod\n WHERE prod.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00804", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(type, amount, salary, level)\n orders(level, date, value, code)\nTask: Retrieve value from employees that have at least one corresponding entry in orders sharing the same level.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "orders", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "value", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00805", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(status, level, date, code)\n categories(id, salary, code, name)\nTask: Retrieve value from orders whose type is found in categories rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE type IN (\n SELECT type FROM categories AS catg\n WHERE catg.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "categories", "outer_alias": "ord", "inner_alias": "catg", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00806", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(status, salary, value, code)\n invoices(date, code, type, amount)\nTask: Retrieve name from customers with value above the SUM(salary) of invoices rows sharing the same type.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE value > (\n SELECT SUM(salary) FROM invoices AS inv\n WHERE inv.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00807", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(id, type, level, code)\n employees(salary, name, level, code)\nTask: Find name from items where a matching record exists in employees with the same type.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "name", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00808", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(status, name, id, level)\n staff(amount, code, date, level)\nTask: Retrieve salary from items with value above the COUNT(salary) of staff rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE value > (\n SELECT COUNT(salary) FROM staff AS empl\n WHERE empl.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "staff", "outer_alias": "lne", "inner_alias": "empl", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00809", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(salary, name, amount, code)\n requests(name, value, salary, amount)\nTask: Retrieve value from managers that have at least one corresponding entry in requests sharing the same id.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "value", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00810", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(code, date, amount, id)\n products(name, type, salary, code)\nTask: Select id from regions where status exists in products for the same type.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00811", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(code, date, value, salary)\n tasks(name, level, value, salary)\nTask: Find salary from employees where id appears in tasks entries with matching status.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE id IN (\n SELECT id FROM tasks AS tsk\n WHERE tsk.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "tasks", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00812", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(salary, amount, code, date)\n orders(date, status, level, name)\nTask: Select salary from projects where id exists in orders for the same type.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE id IN (\n SELECT id FROM orders AS ord\n WHERE ord.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00813", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(name, type, date, level)\n categories(level, type, status, id)\nTask: Select code from orders where level exists in categories for the same level.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "categories", "outer_alias": "ord", "inner_alias": "catg", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00814", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(code, status, date, name)\n transactions(id, status, date, name)\nTask: Select id from managers where id exists in transactions for the same level.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM transactions AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "transactions", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00815", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(code, level, amount, status)\n projects(name, type, value, id)\nTask: Find amount from managers where salary exceeds the average salary from projects for the same code.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE salary > (\n SELECT AVG(salary) FROM projects AS prj\n WHERE prj.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "projects", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00816", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(code, id, value, salary)\n transactions(id, level, value, salary)\nTask: Find value from tasks where code appears in transactions entries with matching status.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "transactions", "outer_alias": "tsk", "inner_alias": "txn", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00817", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(salary, status, code, name)\n managers(amount, type, id, date)\nTask: Retrieve amount from tasks that have at least one corresponding entry in managers sharing the same type.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "managers", "outer_alias": "tsk", "inner_alias": "mgr", "proj_col": "amount", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00818", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(code, level, id, status)\n managers(type, amount, salary, name)\nTask: Find code from requests where amount exceeds the maximum value from managers for the same code.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE amount > (\n SELECT MAX(value) FROM managers AS mgr\n WHERE mgr.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "managers", "outer_alias": "ordr", "inner_alias": "mgr", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00819", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(id, name, level, type)\n employees(code, value, level, id)\nTask: Find name from managers where a matching record exists in employees with the same status.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "employees", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00820", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(name, type, salary, date)\n schedules(status, type, value, name)\nTask: Retrieve amount from employees with amount above the SUM(value) of schedules rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE amount > (\n SELECT SUM(value) FROM schedules AS schd\n WHERE schd.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "schedules", "outer_alias": "emp", "inner_alias": "schd", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00821", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(id, code, type, status)\n branches(status, type, value, date)\nTask: Find salary from invoices where value exceeds the total salary from branches for the same type.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE value > (\n SELECT SUM(salary) FROM branches AS brc\n WHERE brc.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "branches", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00822", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(amount, name, code, date)\n customers(name, value, type, status)\nTask: Select id from products where id exists in customers for the same type.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE id IN (\n SELECT id FROM customers AS cust\n WHERE cust.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "customers", "outer_alias": "prod", "inner_alias": "cust", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00823", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(salary, date, name, type)\n departments(id, type, amount, code)\nTask: Retrieve code from shipments that have at least one corresponding entry in departments sharing the same code.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "departments", "outer_alias": "shp", "inner_alias": "dept", "proj_col": "code", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00824", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(value, status, name, level)\n customers(amount, value, salary, code)\nTask: Retrieve salary from schedules with value above the COUNT(amount) of customers rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE value > (\n SELECT COUNT(amount) FROM customers AS cust\n WHERE cust.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "customers", "outer_alias": "schd", "inner_alias": "cust", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00825", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(value, type, code, date)\n schedules(level, value, type, salary)\nTask: Find amount from regions where status appears in schedules entries with matching type.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE status IN (\n SELECT status FROM schedules AS schd\n WHERE schd.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "schedules", "outer_alias": "rgn", "inner_alias": "schd", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00826", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(type, level, status, value)\n invoices(salary, name, amount, status)\nTask: Find value from sales where level appears in invoices entries with matching status.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE level IN (\n SELECT level FROM invoices AS inv\n WHERE inv.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "invoices", "outer_alias": "sale", "inner_alias": "inv", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00827", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(salary, level, type, amount)\n shipments(code, id, name, level)\nTask: Find salary from transactions where salary exceeds the total salary from shipments for the same code.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE salary > (\n SELECT SUM(salary) FROM shipments AS shp\n WHERE shp.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "shipments", "outer_alias": "txn", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00828", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(amount, id, type, code)\n tasks(level, code, name, id)\nTask: Select name from customers where type exists in tasks for the same id.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "tasks", "outer_alias": "cust", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00829", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(salary, value, amount, status)\n invoices(id, amount, level, code)\nTask: Retrieve amount from projects that have at least one corresponding entry in invoices sharing the same level.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "invoices", "outer_alias": "prj", "inner_alias": "inv", "proj_col": "amount", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00830", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(type, id, status, level)\n branches(date, level, amount, status)\nTask: Find amount from categories where id appears in branches entries with matching type.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE id IN (\n SELECT id FROM branches AS brc\n WHERE brc.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00831", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, date, status, id)\n employees(code, name, salary, id)\nTask: Find name from regions where salary exceeds the average value from employees for the same code.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE salary > (\n SELECT AVG(value) FROM employees AS emp\n WHERE emp.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00832", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(value, status, date, name)\n sales(type, id, name, status)\nTask: Retrieve amount from customers that have at least one corresponding entry in sales sharing the same status.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "sales", "outer_alias": "cust", "inner_alias": "sale", "proj_col": "amount", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00833", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(name, level, status, type)\n branches(value, date, code, amount)\nTask: Find salary from managers where amount exceeds the total amount from branches for the same code.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE amount > (\n SELECT SUM(amount) FROM branches AS brc\n WHERE brc.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "branches", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00834", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(date, code, name, amount)\n projects(salary, type, id, value)\nTask: Find code from products where a matching record exists in projects with the same type.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "projects", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00835", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(name, salary, value, date)\n staff(date, id, code, value)\nTask: Retrieve salary from customers that have at least one corresponding entry in staff sharing the same type.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "staff", "outer_alias": "cust", "inner_alias": "empl", "proj_col": "salary", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00836", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(code, name, date, id)\n regions(amount, date, id, name)\nTask: Find amount from accounts where value exceeds the total amount from regions for the same code.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE value > (\n SELECT SUM(amount) FROM regions AS rgn\n WHERE rgn.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "regions", "outer_alias": "acct", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00837", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(name, level, code, amount)\n items(status, amount, level, name)\nTask: Find name from orders where value exceeds the total amount from items for the same id.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE value > (\n SELECT SUM(amount) FROM items AS lne\n WHERE lne.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00838", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(name, value, salary, type)\n regions(date, name, level, amount)\nTask: Retrieve name from customers that have at least one corresponding entry in regions sharing the same id.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "name", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00839", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(salary, amount, level, type)\n products(id, type, amount, level)\nTask: Find salary from sales where value exceeds the maximum amount from products for the same id.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE value > (\n SELECT MAX(amount) FROM products AS prod\n WHERE prod.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "products", "outer_alias": "sale", "inner_alias": "prod", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00840", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(amount, type, status, date)\n tasks(code, status, level, type)\nTask: Retrieve value from orders that have at least one corresponding entry in tasks sharing the same level.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "tasks", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "value", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00841", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(type, level, date, salary)\n products(name, id, salary, level)\nTask: Retrieve code from orders whose level is found in products rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "products", "outer_alias": "ord", "inner_alias": "prod", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00842", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(date, value, type, status)\n items(name, amount, value, type)\nTask: Retrieve salary from regions with value above the SUM(value) of items rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE value > (\n SELECT SUM(value) FROM items AS lne\n WHERE lne.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "items", "outer_alias": "rgn", "inner_alias": "lne", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00843", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(status, value, amount, date)\n customers(value, id, level, name)\nTask: Find code from shipments where value exceeds the average amount from customers for the same status.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE value > (\n SELECT AVG(amount) FROM customers AS cust\n WHERE cust.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00844", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(type, salary, code, value)\n products(name, level, value, salary)\nTask: Find salary from branches where id appears in products entries with matching level.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "products", "outer_alias": "brc", "inner_alias": "prod", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00845", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(status, amount, id, code)\n tasks(salary, status, amount, code)\nTask: Find name from managers where a matching record exists in tasks with the same id.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "tasks", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00846", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(salary, amount, level, value)\n shipments(id, name, amount, salary)\nTask: Retrieve code from accounts with salary above the SUM(salary) of shipments rows sharing the same code.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE salary > (\n SELECT SUM(salary) FROM shipments AS shp\n WHERE shp.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "shipments", "outer_alias": "acct", "inner_alias": "shp", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00847", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(date, value, id, name)\n tasks(code, level, date, value)\nTask: Retrieve value from requests whose status is found in tasks rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM tasks AS tsk\n WHERE tsk.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "tasks", "outer_alias": "ordr", "inner_alias": "tsk", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00848", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(status, level, name, value)\n invoices(name, salary, level, date)\nTask: Retrieve value from orders that have at least one corresponding entry in invoices sharing the same code.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "invoices", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00849", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(status, name, type, value)\n categories(amount, salary, level, value)\nTask: Find value from orders where value exceeds the average amount from categories for the same level.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE value > (\n SELECT AVG(amount) FROM categories AS catg\n WHERE catg.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "categories", "outer_alias": "ord", "inner_alias": "catg", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00850", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(status, salary, code, date)\n orders(amount, name, status, level)\nTask: Retrieve id from accounts with salary above the MAX(amount) of orders rows sharing the same status.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE salary > (\n SELECT MAX(amount) FROM orders AS ord\n WHERE ord.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "orders", "outer_alias": "acct", "inner_alias": "ord", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00851", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(amount, name, date, id)\n categories(status, value, type, amount)\nTask: Find name from sales where a matching record exists in categories with the same code.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "categories", "outer_alias": "sale", "inner_alias": "catg", "proj_col": "name", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00852", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(code, value, level, amount)\n employees(value, level, salary, name)\nTask: Retrieve salary from managers with value above the MAX(salary) of employees rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE value > (\n SELECT MAX(salary) FROM employees AS emp\n WHERE emp.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "employees", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00853", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(level, amount, salary, name)\n accounts(code, type, value, date)\nTask: Find value from invoices where salary exceeds the average salary from accounts for the same id.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE salary > (\n SELECT AVG(salary) FROM accounts AS acct\n WHERE acct.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00854", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(type, amount, salary, status)\n regions(level, type, status, date)\nTask: Find salary from shipments where id appears in regions entries with matching status.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "regions", "outer_alias": "shp", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00855", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(value, date, amount, status)\n orders(salary, level, name, code)\nTask: Select code from staff where status exists in orders for the same id.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE status IN (\n SELECT status FROM orders AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "orders", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00856", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(id, level, status, salary)\n sales(amount, value, code, id)\nTask: Retrieve name from orders with value above the AVG(salary) of sales rows sharing the same code.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE value > (\n SELECT AVG(salary) FROM sales AS sale\n WHERE sale.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "sales", "outer_alias": "ord", "inner_alias": "sale", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00857", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(status, id, name, type)\n orders(code, salary, type, id)\nTask: Retrieve amount from tasks whose id is found in orders rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE id IN (\n SELECT id FROM orders AS ord\n WHERE ord.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "orders", "outer_alias": "tsk", "inner_alias": "ord", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00858", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(level, code, id, amount)\n items(type, level, value, name)\nTask: Retrieve amount from invoices whose level is found in items rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE level IN (\n SELECT level FROM items AS lne\n WHERE lne.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "items", "outer_alias": "inv", "inner_alias": "lne", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00859", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(level, id, value, salary)\n tasks(status, code, id, date)\nTask: Find id from employees where status appears in tasks entries with matching type.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE status IN (\n SELECT status FROM tasks AS tsk\n WHERE tsk.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "tasks", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00860", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(level, value, status, name)\n staff(amount, level, date, type)\nTask: Retrieve amount from branches that have at least one corresponding entry in staff sharing the same code.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "staff", "outer_alias": "brc", "inner_alias": "empl", "proj_col": "amount", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00861", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(status, date, type, id)\n items(amount, level, code, date)\nTask: Find amount from managers where salary exceeds the total amount from items for the same code.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE salary > (\n SELECT SUM(amount) FROM items AS lne\n WHERE lne.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "items", "outer_alias": "mgr", "inner_alias": "lne", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00862", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(amount, type, date, code)\n departments(type, name, code, status)\nTask: Select value from managers where id exists in departments for the same id.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM departments AS dept\n WHERE dept.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "departments", "outer_alias": "mgr", "inner_alias": "dept", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00863", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(salary, date, status, id)\n transactions(salary, status, code, name)\nTask: Retrieve name from regions with value above the MIN(value) of transactions rows sharing the same level.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE value > (\n SELECT MIN(value) FROM transactions AS txn\n WHERE txn.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "transactions", "outer_alias": "rgn", "inner_alias": "txn", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00864", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(id, status, value, salary)\n projects(salary, id, type, level)\nTask: Retrieve name from employees whose id is found in projects rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "projects", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00865", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(salary, name, amount, type)\n transactions(id, name, code, value)\nTask: Retrieve salary from schedules that have at least one corresponding entry in transactions sharing the same type.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "transactions", "outer_alias": "schd", "inner_alias": "txn", "proj_col": "salary", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00866", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(code, level, amount, name)\n transactions(id, salary, level, name)\nTask: Retrieve value from regions whose type is found in transactions rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM transactions AS txn\n WHERE txn.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "transactions", "outer_alias": "rgn", "inner_alias": "txn", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00867", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(amount, salary, code, level)\n projects(level, code, name, salary)\nTask: Retrieve name from departments with salary above the SUM(value) of projects rows sharing the same status.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE salary > (\n SELECT SUM(value) FROM projects AS prj\n WHERE prj.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "projects", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00868", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(salary, status, id, value)\n projects(salary, type, value, date)\nTask: Retrieve value from tasks that have at least one corresponding entry in projects sharing the same code.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "projects", "outer_alias": "tsk", "inner_alias": "prj", "proj_col": "value", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00869", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(amount, level, status, type)\n staff(level, name, status, value)\nTask: Find amount from customers where a matching record exists in staff with the same type.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "staff", "outer_alias": "cust", "inner_alias": "empl", "proj_col": "amount", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00870", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(type, status, amount, salary)\n customers(name, level, id, salary)\nTask: Retrieve salary from branches with salary above the MAX(salary) of customers rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE salary > (\n SELECT MAX(salary) FROM customers AS cust\n WHERE cust.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "customers", "outer_alias": "brc", "inner_alias": "cust", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00871", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(amount, date, level, type)\n tasks(status, name, level, value)\nTask: Find amount from employees where a matching record exists in tasks with the same status.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "tasks", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "amount", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00872", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(salary, status, code, date)\n invoices(amount, salary, level, status)\nTask: Retrieve name from categories whose code is found in invoices rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE code IN (\n SELECT code FROM invoices AS inv\n WHERE inv.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "invoices", "outer_alias": "catg", "inner_alias": "inv", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00873", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(name, level, code, salary)\n categories(type, value, status, id)\nTask: Retrieve id from regions with amount above the MAX(amount) of categories rows sharing the same status.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE amount > (\n SELECT MAX(amount) FROM categories AS catg\n WHERE catg.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "categories", "outer_alias": "rgn", "inner_alias": "catg", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00874", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(level, status, value, id)\n sales(date, value, name, amount)\nTask: Select amount from shipments where id exists in sales for the same code.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE id IN (\n SELECT id FROM sales AS sale\n WHERE sale.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "sales", "outer_alias": "shp", "inner_alias": "sale", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00875", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(amount, id, salary, date)\n tasks(date, name, amount, code)\nTask: Retrieve name from sales whose id is found in tasks rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE id IN (\n SELECT id FROM tasks AS tsk\n WHERE tsk.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "tasks", "outer_alias": "sale", "inner_alias": "tsk", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00876", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(code, date, level, value)\n employees(date, level, id, type)\nTask: Select amount from transactions where status exists in employees for the same id.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00877", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(id, amount, status, level)\n transactions(type, amount, id, level)\nTask: Retrieve salary from products with amount above the MAX(value) of transactions rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE amount > (\n SELECT MAX(value) FROM transactions AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00878", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(amount, status, name, code)\n categories(date, code, value, amount)\nTask: Retrieve salary from employees with value above the AVG(value) of categories rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE value > (\n SELECT AVG(value) FROM categories AS catg\n WHERE catg.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "categories", "outer_alias": "emp", "inner_alias": "catg", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00879", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(salary, name, value, id)\n requests(level, date, name, type)\nTask: Select value from customers where code exists in requests for the same level.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "requests", "outer_alias": "cust", "inner_alias": "ordr", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00880", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(type, level, salary, date)\n projects(status, type, value, date)\nTask: Retrieve code from staff that have at least one corresponding entry in projects sharing the same level.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "projects", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00881", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(value, type, status, code)\n regions(type, amount, date, salary)\nTask: Find id from orders where salary exceeds the maximum amount from regions for the same id.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE salary > (\n SELECT MAX(amount) FROM regions AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "regions", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00882", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(id, code, status, salary)\n sales(level, id, value, name)\nTask: Select id from projects where level exists in sales for the same level.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE level IN (\n SELECT level FROM sales AS sale\n WHERE sale.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "sales", "outer_alias": "prj", "inner_alias": "sale", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00883", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(salary, id, type, date)\n regions(value, date, code, status)\nTask: Retrieve id from items whose code is found in regions rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "regions", "outer_alias": "lne", "inner_alias": "rgn", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00884", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(value, salary, status, code)\n customers(id, level, code, status)\nTask: Find id from transactions where a matching record exists in customers with the same code.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "customers", "outer_alias": "txn", "inner_alias": "cust", "proj_col": "id", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00885", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(amount, date, status, salary)\n managers(id, salary, code, level)\nTask: Retrieve code from staff with amount above the COUNT(value) of managers rows sharing the same id.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE amount > (\n SELECT COUNT(value) FROM managers AS mgr\n WHERE mgr.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "managers", "outer_alias": "empl", "inner_alias": "mgr", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00886", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(amount, date, value, type)\n staff(id, status, code, type)\nTask: Find value from managers where salary exceeds the minimum salary from staff for the same status.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE salary > (\n SELECT MIN(salary) FROM staff AS empl\n WHERE empl.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "staff", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00887", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(type, salary, name, id)\n products(amount, code, type, id)\nTask: Retrieve id from tasks whose level is found in products rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "products", "outer_alias": "tsk", "inner_alias": "prod", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00888", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(name, status, code, value)\n accounts(type, name, code, amount)\nTask: Retrieve value from schedules with amount above the MIN(value) of accounts rows sharing the same type.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE amount > (\n SELECT MIN(value) FROM accounts AS acct\n WHERE acct.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "accounts", "outer_alias": "schd", "inner_alias": "acct", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00889", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(date, value, salary, status)\n branches(status, code, id, salary)\nTask: Find id from shipments where level appears in branches entries with matching id.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "branches", "outer_alias": "shp", "inner_alias": "brc", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00890", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(name, salary, date, value)\n branches(type, name, amount, id)\nTask: Retrieve code from tasks with salary above the COUNT(amount) of branches rows sharing the same level.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE salary > (\n SELECT COUNT(amount) FROM branches AS brc\n WHERE brc.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "branches", "outer_alias": "tsk", "inner_alias": "brc", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00891", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(level, value, date, type)\n transactions(date, value, status, id)\nTask: Find id from projects where a matching record exists in transactions with the same status.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "transactions", "outer_alias": "prj", "inner_alias": "txn", "proj_col": "id", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00892", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(code, amount, salary, status)\n staff(value, salary, code, type)\nTask: Find code from sales where type appears in staff entries with matching status.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "staff", "outer_alias": "sale", "inner_alias": "empl", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00893", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(value, status, level, date)\n projects(amount, name, type, value)\nTask: Find amount from sales where salary exceeds the minimum value from projects for the same level.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE salary > (\n SELECT MIN(value) FROM projects AS prj\n WHERE prj.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "projects", "outer_alias": "sale", "inner_alias": "prj", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00894", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(code, salary, status, name)\n categories(status, date, amount, type)\nTask: Find id from projects where value exceeds the minimum value from categories for the same code.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE value > (\n SELECT MIN(value) FROM categories AS catg\n WHERE catg.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "categories", "outer_alias": "prj", "inner_alias": "catg", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00895", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(level, status, id, name)\n categories(value, code, salary, id)\nTask: Find salary from departments where a matching record exists in categories with the same id.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "categories", "outer_alias": "dept", "inner_alias": "catg", "proj_col": "salary", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00896", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(salary, status, type, date)\n staff(level, status, amount, id)\nTask: Find salary from items where id appears in staff entries with matching code.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE id IN (\n SELECT id FROM staff AS empl\n WHERE empl.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "staff", "outer_alias": "lne", "inner_alias": "empl", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00897", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(code, value, id, salary)\n regions(id, type, status, level)\nTask: Retrieve salary from staff with amount above the MAX(amount) of regions rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE amount > (\n SELECT MAX(amount) FROM regions AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "regions", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00898", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(level, code, name, value)\n regions(type, salary, status, level)\nTask: Retrieve amount from branches with amount above the COUNT(salary) of regions rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE amount > (\n SELECT COUNT(salary) FROM regions AS rgn\n WHERE rgn.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "regions", "outer_alias": "brc", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00899", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(name, id, code, date)\n schedules(salary, code, type, date)\nTask: Retrieve value from invoices with amount above the SUM(amount) of schedules rows sharing the same level.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE amount > (\n SELECT SUM(amount) FROM schedules AS schd\n WHERE schd.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00900", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(status, code, type, salary)\n invoices(id, name, value, code)\nTask: Select amount from orders where code exists in invoices for the same code.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE code IN (\n SELECT code FROM invoices AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "invoices", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00901", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(id, date, status, type)\n projects(salary, amount, status, name)\nTask: Find name from shipments where amount exceeds the count of salary from projects for the same status.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE amount > (\n SELECT COUNT(salary) FROM projects AS prj\n WHERE prj.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "projects", "outer_alias": "shp", "inner_alias": "prj", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00902", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(code, status, name, amount)\n orders(salary, type, level, status)\nTask: Find code from managers where salary exceeds the count of amount from orders for the same type.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE salary > (\n SELECT COUNT(amount) FROM orders AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "orders", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00903", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(level, name, date, salary)\n requests(date, id, level, amount)\nTask: Retrieve value from tasks with amount above the AVG(value) of requests rows sharing the same id.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE amount > (\n SELECT AVG(value) FROM requests AS ordr\n WHERE ordr.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00904", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(status, salary, value, level)\n shipments(name, salary, date, amount)\nTask: Retrieve value from customers with amount above the SUM(value) of shipments rows sharing the same id.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE amount > (\n SELECT SUM(value) FROM shipments AS shp\n WHERE shp.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "shipments", "outer_alias": "cust", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00905", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(salary, value, status, type)\n transactions(id, status, value, level)\nTask: Retrieve amount from invoices that have at least one corresponding entry in transactions sharing the same type.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "transactions", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00906", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(amount, name, id, code)\n departments(id, level, status, value)\nTask: Find id from sales where value exceeds the count of amount from departments for the same level.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE value > (\n SELECT COUNT(amount) FROM departments AS dept\n WHERE dept.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "departments", "outer_alias": "sale", "inner_alias": "dept", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00907", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(salary, id, name, value)\n requests(date, type, salary, id)\nTask: Select amount from tasks where status exists in requests for the same code.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00908", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(status, date, value, id)\n transactions(type, id, date, code)\nTask: Find name from projects where a matching record exists in transactions with the same type.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "transactions", "outer_alias": "prj", "inner_alias": "txn", "proj_col": "name", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00909", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(level, status, amount, name)\n sales(value, date, name, amount)\nTask: Retrieve value from transactions that have at least one corresponding entry in sales sharing the same type.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "sales", "outer_alias": "txn", "inner_alias": "sale", "proj_col": "value", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00910", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(type, salary, value, status)\n schedules(level, type, name, status)\nTask: Find value from shipments where value exceeds the total salary from schedules for the same level.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE value > (\n SELECT SUM(salary) FROM schedules AS schd\n WHERE schd.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "schedules", "outer_alias": "shp", "inner_alias": "schd", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00911", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(name, id, status, salary)\n shipments(id, amount, date, name)\nTask: Find name from tasks where amount exceeds the maximum amount from shipments for the same status.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE amount > (\n SELECT MAX(amount) FROM shipments AS shp\n WHERE shp.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "shipments", "outer_alias": "tsk", "inner_alias": "shp", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00912", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(salary, code, status, type)\n sales(salary, amount, id, status)\nTask: Select value from items where status exists in sales for the same id.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "sales", "outer_alias": "lne", "inner_alias": "sale", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00913", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(amount, salary, code, id)\n requests(id, name, level, status)\nTask: Retrieve id from tasks that have at least one corresponding entry in requests sharing the same level.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "id", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00914", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(salary, id, level, name)\n shipments(level, status, value, id)\nTask: Retrieve amount from invoices that have at least one corresponding entry in shipments sharing the same code.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00915", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(name, value, date, type)\n branches(type, status, level, salary)\nTask: Select salary from categories where level exists in branches for the same type.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00916", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(level, id, amount, date)\n items(name, level, date, type)\nTask: Retrieve name from transactions with amount above the AVG(value) of items rows sharing the same id.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE amount > (\n SELECT AVG(value) FROM items AS lne\n WHERE lne.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "items", "outer_alias": "txn", "inner_alias": "lne", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00917", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(value, id, amount, level)\n regions(date, type, amount, id)\nTask: Find value from products where a matching record exists in regions with the same level.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00918", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(name, amount, code, status)\n schedules(amount, salary, value, status)\nTask: Retrieve id from customers with amount above the MIN(amount) of schedules rows sharing the same type.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE amount > (\n SELECT MIN(amount) FROM schedules AS schd\n WHERE schd.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "schedules", "outer_alias": "cust", "inner_alias": "schd", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00919", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(level, code, date, salary)\n customers(level, value, amount, status)\nTask: Retrieve name from transactions that have at least one corresponding entry in customers sharing the same status.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "customers", "outer_alias": "txn", "inner_alias": "cust", "proj_col": "name", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00920", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(value, status, salary, date)\n regions(date, id, status, amount)\nTask: Select name from products where code exists in regions for the same code.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00921", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(salary, value, level, id)\n accounts(type, level, date, id)\nTask: Find id from customers where a matching record exists in accounts with the same id.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "accounts", "outer_alias": "cust", "inner_alias": "acct", "proj_col": "id", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00922", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(id, salary, value, name)\n employees(type, amount, code, name)\nTask: Find value from transactions where value exceeds the maximum amount from employees for the same status.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE value > (\n SELECT MAX(amount) FROM employees AS emp\n WHERE emp.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00923", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(value, salary, code, level)\n items(type, code, level, amount)\nTask: Retrieve id from employees with value above the MIN(value) of items rows sharing the same status.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE value > (\n SELECT MIN(value) FROM items AS lne\n WHERE lne.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "items", "outer_alias": "emp", "inner_alias": "lne", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00924", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(date, level, salary, code)\n departments(name, code, value, salary)\nTask: Retrieve value from shipments with value above the MAX(value) of departments rows sharing the same type.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE value > (\n SELECT MAX(value) FROM departments AS dept\n WHERE dept.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "departments", "outer_alias": "shp", "inner_alias": "dept", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00925", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(amount, value, id, salary)\n accounts(amount, value, type, date)\nTask: Find amount from categories where a matching record exists in accounts with the same code.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "accounts", "outer_alias": "catg", "inner_alias": "acct", "proj_col": "amount", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00926", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(id, status, value, code)\n tasks(amount, level, name, salary)\nTask: Retrieve name from accounts that have at least one corresponding entry in tasks sharing the same code.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "tasks", "outer_alias": "acct", "inner_alias": "tsk", "proj_col": "name", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00927", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(level, status, code, salary)\n products(id, type, level, date)\nTask: Select id from items where code exists in products for the same status.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE code IN (\n SELECT code FROM products AS prod\n WHERE prod.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "products", "outer_alias": "lne", "inner_alias": "prod", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00928", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(level, amount, type, id)\n projects(salary, date, level, name)\nTask: Retrieve name from employees with value above the MIN(value) of projects rows sharing the same id.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE value > (\n SELECT MIN(value) FROM projects AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "projects", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00929", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(status, salary, type, value)\n invoices(id, date, value, amount)\nTask: Find salary from tasks where value exceeds the total amount from invoices for the same code.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE value > (\n SELECT SUM(amount) FROM invoices AS inv\n WHERE inv.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "invoices", "outer_alias": "tsk", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00930", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(salary, date, id, code)\n shipments(id, salary, level, date)\nTask: Select value from transactions where id exists in shipments for the same type.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM shipments AS shp\n WHERE shp.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "shipments", "outer_alias": "txn", "inner_alias": "shp", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00931", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(value, name, status, type)\n items(amount, type, date, value)\nTask: Find salary from customers where level appears in items entries with matching id.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE level IN (\n SELECT level FROM items AS lne\n WHERE lne.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "items", "outer_alias": "cust", "inner_alias": "lne", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00932", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(name, level, amount, id)\n tasks(id, value, code, status)\nTask: Find code from employees where salary exceeds the average salary from tasks for the same code.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE salary > (\n SELECT AVG(salary) FROM tasks AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "tasks", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00933", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(id, code, salary, level)\n regions(salary, date, status, value)\nTask: Retrieve code from departments whose level is found in regions rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "regions", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00934", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(amount, date, status, type)\n transactions(date, status, id, code)\nTask: Find salary from sales where a matching record exists in transactions with the same code.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "transactions", "outer_alias": "sale", "inner_alias": "txn", "proj_col": "salary", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00935", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(name, amount, level, type)\n customers(amount, name, level, id)\nTask: Retrieve id from managers whose level is found in customers rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "customers", "outer_alias": "mgr", "inner_alias": "cust", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00936", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(status, type, level, id)\n schedules(status, date, amount, id)\nTask: Find salary from branches where a matching record exists in schedules with the same code.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "schedules", "outer_alias": "brc", "inner_alias": "schd", "proj_col": "salary", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00937", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(status, code, type, id)\n tasks(salary, type, value, name)\nTask: Find name from staff where code appears in tasks entries with matching type.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE code IN (\n SELECT code FROM tasks AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "tasks", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00938", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(type, salary, name, status)\n transactions(value, code, level, status)\nTask: Find name from projects where a matching record exists in transactions with the same status.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "transactions", "outer_alias": "prj", "inner_alias": "txn", "proj_col": "name", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00939", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(amount, status, level, id)\n categories(code, value, status, date)\nTask: Retrieve code from shipments that have at least one corresponding entry in categories sharing the same code.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "categories", "outer_alias": "shp", "inner_alias": "catg", "proj_col": "code", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_00940", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(value, id, code, status)\n shipments(type, name, date, level)\nTask: Select value from requests where code exists in shipments for the same code.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "shipments", "outer_alias": "ordr", "inner_alias": "shp", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00941", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(type, level, salary, amount)\n departments(id, code, value, date)\nTask: Find id from orders where amount exceeds the maximum value from departments for the same type.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE amount > (\n SELECT MAX(value) FROM departments AS dept\n WHERE dept.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "departments", "outer_alias": "ord", "inner_alias": "dept", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00942", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(name, code, status, salary)\n accounts(id, amount, value, level)\nTask: Find value from transactions where salary exceeds the average salary from accounts for the same status.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE salary > (\n SELECT AVG(salary) FROM accounts AS acct\n WHERE acct.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "accounts", "outer_alias": "txn", "inner_alias": "acct", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00943", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(type, status, name, salary)\n sales(value, status, amount, code)\nTask: Find code from employees where a matching record exists in sales with the same code.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "sales", "outer_alias": "emp", "inner_alias": "sale", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00944", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(salary, code, status, type)\n branches(status, salary, value, code)\nTask: Retrieve code from customers with amount above the AVG(value) of branches rows sharing the same type.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE amount > (\n SELECT AVG(value) FROM branches AS brc\n WHERE brc.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "branches", "outer_alias": "cust", "inner_alias": "brc", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00945", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(date, code, salary, status)\n schedules(status, level, name, value)\nTask: Find name from projects where a matching record exists in schedules with the same id.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "schedules", "outer_alias": "prj", "inner_alias": "schd", "proj_col": "name", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00946", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(name, value, code, id)\n invoices(salary, date, amount, value)\nTask: Retrieve salary from schedules that have at least one corresponding entry in invoices sharing the same id.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "invoices", "outer_alias": "schd", "inner_alias": "inv", "proj_col": "salary", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00947", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(status, id, value, amount)\n schedules(date, amount, code, status)\nTask: Retrieve salary from staff whose status is found in schedules rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE status IN (\n SELECT status FROM schedules AS schd\n WHERE schd.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "schedules", "outer_alias": "empl", "inner_alias": "schd", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00948", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(value, name, status, id)\n managers(amount, level, type, value)\nTask: Retrieve id from invoices that have at least one corresponding entry in managers sharing the same level.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "managers", "outer_alias": "inv", "inner_alias": "mgr", "proj_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00949", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(type, code, status, value)\n transactions(code, name, status, salary)\nTask: Retrieve salary from regions whose type is found in transactions rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM transactions AS txn\n WHERE txn.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "transactions", "outer_alias": "rgn", "inner_alias": "txn", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00950", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(level, date, status, id)\n projects(name, value, salary, id)\nTask: Retrieve salary from managers with amount above the SUM(salary) of projects rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE amount > (\n SELECT SUM(salary) FROM projects AS prj\n WHERE prj.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "projects", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00951", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(value, code, date, amount)\n departments(id, salary, name, date)\nTask: Find amount from products where amount exceeds the count of amount from departments for the same type.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE amount > (\n SELECT COUNT(amount) FROM departments AS dept\n WHERE dept.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "departments", "outer_alias": "prod", "inner_alias": "dept", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00952", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(amount, name, type, level)\n tasks(code, name, value, level)\nTask: Retrieve name from customers whose level is found in tasks rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE level IN (\n SELECT level FROM tasks AS tsk\n WHERE tsk.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "tasks", "outer_alias": "cust", "inner_alias": "tsk", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00953", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(type, status, amount, level)\n accounts(id, date, code, value)\nTask: Find name from regions where level appears in accounts entries with matching level.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE level IN (\n SELECT level FROM accounts AS acct\n WHERE acct.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "accounts", "outer_alias": "rgn", "inner_alias": "acct", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00954", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(status, value, type, date)\n items(status, type, name, code)\nTask: Select amount from managers where type exists in items for the same code.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "items", "outer_alias": "mgr", "inner_alias": "lne", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00955", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(code, value, date, level)\n customers(value, level, salary, name)\nTask: Find code from tasks where a matching record exists in customers with the same level.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "customers", "outer_alias": "tsk", "inner_alias": "cust", "proj_col": "code", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00956", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(salary, date, id, type)\n branches(type, level, name, status)\nTask: Find amount from employees where a matching record exists in branches with the same code.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "branches", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00957", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(name, id, level, code)\n requests(level, id, amount, name)\nTask: Retrieve amount from staff whose id is found in requests rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE id IN (\n SELECT id FROM requests AS ordr\n WHERE ordr.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "requests", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00958", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(amount, value, name, status)\n shipments(date, value, code, salary)\nTask: Retrieve id from departments that have at least one corresponding entry in shipments sharing the same level.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "shipments", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00959", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(level, value, amount, status)\n projects(type, code, salary, amount)\nTask: Retrieve salary from branches with salary above the SUM(value) of projects rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE salary > (\n SELECT SUM(value) FROM projects AS prj\n WHERE prj.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "projects", "outer_alias": "brc", "inner_alias": "prj", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00960", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(level, date, name, code)\n schedules(amount, salary, value, status)\nTask: Find code from sales where a matching record exists in schedules with the same id.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "schedules", "outer_alias": "sale", "inner_alias": "schd", "proj_col": "code", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00961", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(amount, status, level, id)\n transactions(level, value, type, salary)\nTask: Retrieve id from staff that have at least one corresponding entry in transactions sharing the same type.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "transactions", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00962", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(name, code, id, value)\n sales(date, name, type, code)\nTask: Find value from requests where salary exceeds the minimum value from sales for the same code.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE salary > (\n SELECT MIN(value) FROM sales AS sale\n WHERE sale.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "sales", "outer_alias": "ordr", "inner_alias": "sale", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00963", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(value, level, name, id)\n departments(date, status, salary, value)\nTask: Retrieve value from tasks with amount above the MAX(amount) of departments rows sharing the same status.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE amount > (\n SELECT MAX(amount) FROM departments AS dept\n WHERE dept.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "departments", "outer_alias": "tsk", "inner_alias": "dept", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00964", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(amount, value, status, salary)\n projects(type, value, salary, level)\nTask: Find salary from regions where amount exceeds the average amount from projects for the same code.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE amount > (\n SELECT AVG(amount) FROM projects AS prj\n WHERE prj.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "projects", "outer_alias": "rgn", "inner_alias": "prj", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00965", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(amount, level, date, value)\n sales(value, salary, id, type)\nTask: Retrieve salary from staff that have at least one corresponding entry in sales sharing the same code.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "sales", "outer_alias": "empl", "inner_alias": "sale", "proj_col": "salary", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_00966", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(amount, salary, name, code)\n managers(value, level, type, id)\nTask: Retrieve id from projects that have at least one corresponding entry in managers sharing the same code.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "managers", "outer_alias": "prj", "inner_alias": "mgr", "proj_col": "id", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_00967", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(status, name, date, value)\n sales(value, id, status, name)\nTask: Find value from orders where amount exceeds the minimum value from sales for the same code.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE amount > (\n SELECT MIN(value) FROM sales AS sale\n WHERE sale.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "sales", "outer_alias": "ord", "inner_alias": "sale", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00968", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(type, level, name, code)\n sales(salary, name, date, type)\nTask: Retrieve name from regions whose id is found in sales rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE id IN (\n SELECT id FROM sales AS sale\n WHERE sale.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "sales", "outer_alias": "rgn", "inner_alias": "sale", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00969", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(name, date, status, code)\n departments(salary, value, code, date)\nTask: Retrieve id from items that have at least one corresponding entry in departments sharing the same type.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "departments", "outer_alias": "lne", "inner_alias": "dept", "proj_col": "id", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00970", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(code, type, value, name)\n accounts(type, amount, level, date)\nTask: Retrieve name from schedules whose code is found in accounts rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "accounts", "outer_alias": "schd", "inner_alias": "acct", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00971", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(id, amount, level, code)\n staff(name, level, value, code)\nTask: Find name from managers where type appears in staff entries with matching type.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "staff", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00972", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(name, code, id, type)\n requests(name, amount, value, date)\nTask: Select salary from orders where code exists in requests for the same status.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "requests", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00973", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(date, name, value, code)\n orders(level, date, type, code)\nTask: Find amount from requests where amount exceeds the total amount from orders for the same level.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE amount > (\n SELECT SUM(amount) FROM orders AS ord\n WHERE ord.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "orders", "outer_alias": "ordr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00974", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(type, status, code, date)\n invoices(name, value, amount, date)\nTask: Retrieve amount from accounts that have at least one corresponding entry in invoices sharing the same level.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "invoices", "outer_alias": "acct", "inner_alias": "inv", "proj_col": "amount", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00975", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(id, code, amount, name)\n orders(date, name, amount, value)\nTask: Find code from managers where type appears in orders entries with matching id.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM orders AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "orders", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00976", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(name, level, type, code)\n managers(name, code, value, amount)\nTask: Select name from tasks where id exists in managers for the same level.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "managers", "outer_alias": "tsk", "inner_alias": "mgr", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00977", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(code, amount, status, level)\n staff(code, date, id, value)\nTask: Find name from products where a matching record exists in staff with the same type.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00978", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(value, name, code, id)\n invoices(type, id, amount, salary)\nTask: Find value from orders where amount exceeds the maximum value from invoices for the same type.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE amount > (\n SELECT MAX(value) FROM invoices AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "invoices", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00979", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(status, type, amount, level)\n accounts(status, id, type, name)\nTask: Retrieve amount from employees with amount above the SUM(amount) of accounts rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE amount > (\n SELECT SUM(amount) FROM accounts AS acct\n WHERE acct.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "accounts", "outer_alias": "emp", "inner_alias": "acct", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00980", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(amount, salary, name, code)\n invoices(amount, type, value, id)\nTask: Find amount from regions where a matching record exists in invoices with the same code.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "invoices", "outer_alias": "rgn", "inner_alias": "inv", "proj_col": "amount", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00981", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(name, value, level, code)\n projects(amount, code, type, date)\nTask: Find name from departments where status appears in projects entries with matching id.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE status IN (\n SELECT status FROM projects AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "projects", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00982", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(date, id, status, name)\n items(type, code, level, amount)\nTask: Find name from branches where amount exceeds the count of salary from items for the same type.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE amount > (\n SELECT COUNT(salary) FROM items AS lne\n WHERE lne.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "items", "outer_alias": "brc", "inner_alias": "lne", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00983", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(type, name, amount, value)\n branches(value, salary, date, id)\nTask: Find id from tasks where amount exceeds the minimum amount from branches for the same status.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE amount > (\n SELECT MIN(amount) FROM branches AS brc\n WHERE brc.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "branches", "outer_alias": "tsk", "inner_alias": "brc", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_00984", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(salary, amount, date, status)\n projects(salary, date, status, code)\nTask: Find name from branches where a matching record exists in projects with the same code.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "projects", "outer_alias": "brc", "inner_alias": "prj", "proj_col": "name", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_00985", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(date, amount, status, value)\n departments(salary, code, value, level)\nTask: Find id from customers where a matching record exists in departments with the same level.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "departments", "outer_alias": "cust", "inner_alias": "dept", "proj_col": "id", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00986", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(date, code, amount, level)\n staff(name, code, amount, date)\nTask: Find value from requests where amount exceeds the average value from staff for the same code.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE amount > (\n SELECT AVG(value) FROM staff AS empl\n WHERE empl.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "staff", "outer_alias": "ordr", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_00987", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(salary, date, name, id)\n regions(amount, type, value, salary)\nTask: Retrieve name from items with value above the SUM(salary) of regions rows sharing the same level.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE value > (\n SELECT SUM(salary) FROM regions AS rgn\n WHERE rgn.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "regions", "outer_alias": "lne", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_00988", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(name, value, date, amount)\n branches(id, salary, value, name)\nTask: Retrieve code from categories whose id is found in branches rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE id IN (\n SELECT id FROM branches AS brc\n WHERE brc.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00989", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(type, value, code, date)\n branches(status, name, amount, id)\nTask: Select id from regions where status exists in branches for the same status.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "branches", "outer_alias": "rgn", "inner_alias": "brc", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_00990", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(name, level, status, salary)\n categories(level, amount, value, date)\nTask: Retrieve amount from customers that have at least one corresponding entry in categories sharing the same id.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "categories", "outer_alias": "cust", "inner_alias": "catg", "proj_col": "amount", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00991", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(salary, id, type, level)\n requests(value, level, type, date)\nTask: Find amount from departments where value exceeds the count of amount from requests for the same status.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE value > (\n SELECT COUNT(amount) FROM requests AS ordr\n WHERE ordr.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "requests", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00992", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(id, status, salary, type)\n employees(date, type, amount, status)\nTask: Retrieve amount from transactions whose type is found in employees rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00993", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(status, salary, id, amount)\n categories(amount, value, date, type)\nTask: Retrieve value from products with salary above the MIN(value) of categories rows sharing the same id.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE salary > (\n SELECT MIN(value) FROM categories AS catg\n WHERE catg.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "categories", "outer_alias": "prod", "inner_alias": "catg", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00994", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(name, date, salary, amount)\n staff(date, level, type, salary)\nTask: Find name from accounts where a matching record exists in staff with the same code.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "name", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00995", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(id, code, level, date)\n tasks(salary, id, amount, status)\nTask: Find amount from managers where code appears in tasks entries with matching status.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM tasks AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "tasks", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00996", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(id, date, salary, value)\n tasks(status, code, name, id)\nTask: Select amount from customers where id exists in tasks for the same id.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE id IN (\n SELECT id FROM tasks AS tsk\n WHERE tsk.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "tasks", "outer_alias": "cust", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00997", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(amount, salary, name, code)\n managers(type, id, date, value)\nTask: Retrieve name from categories with value above the SUM(value) of managers rows sharing the same code.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE value > (\n SELECT SUM(value) FROM managers AS mgr\n WHERE mgr.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "managers", "outer_alias": "catg", "inner_alias": "mgr", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_00998", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(salary, level, date, value)\n items(name, status, level, date)\nTask: Find value from accounts where code appears in items entries with matching code.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE code IN (\n SELECT code FROM items AS lne\n WHERE lne.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "items", "outer_alias": "acct", "inner_alias": "lne", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_00999", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(salary, value, level, code)\n products(value, code, id, type)\nTask: Retrieve value from invoices whose level is found in products rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "products", "outer_alias": "inv", "inner_alias": "prod", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01000", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(name, id, level, salary)\n accounts(status, level, type, value)\nTask: Retrieve amount from tasks with salary above the SUM(salary) of accounts rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE salary > (\n SELECT SUM(salary) FROM accounts AS acct\n WHERE acct.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "accounts", "outer_alias": "tsk", "inner_alias": "acct", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01001", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(salary, value, id, status)\n invoices(status, id, code, date)\nTask: Find code from employees where status appears in invoices entries with matching type.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE status IN (\n SELECT status FROM invoices AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01002", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(status, level, id, type)\n sales(id, date, value, level)\nTask: Retrieve name from regions with amount above the SUM(value) of sales rows sharing the same type.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE amount > (\n SELECT SUM(value) FROM sales AS sale\n WHERE sale.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "sales", "outer_alias": "rgn", "inner_alias": "sale", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01003", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(type, code, amount, value)\n accounts(code, date, value, amount)\nTask: Find salary from invoices where salary exceeds the total value from accounts for the same level.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE salary > (\n SELECT SUM(value) FROM accounts AS acct\n WHERE acct.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01004", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(type, level, salary, value)\n accounts(code, level, amount, type)\nTask: Find name from orders where a matching record exists in accounts with the same id.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "accounts", "outer_alias": "ord", "inner_alias": "acct", "proj_col": "name", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01005", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(code, salary, value, id)\n requests(level, date, value, id)\nTask: Retrieve id from departments that have at least one corresponding entry in requests sharing the same level.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "requests", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01006", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(status, id, value, date)\n regions(date, code, type, level)\nTask: Find id from projects where salary exceeds the total salary from regions for the same id.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE salary > (\n SELECT SUM(salary) FROM regions AS rgn\n WHERE rgn.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "regions", "outer_alias": "prj", "inner_alias": "rgn", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01007", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(id, level, date, amount)\n orders(name, code, level, salary)\nTask: Select amount from regions where status exists in orders for the same code.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE status IN (\n SELECT status FROM orders AS ord\n WHERE ord.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "orders", "outer_alias": "rgn", "inner_alias": "ord", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01008", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(amount, type, date, level)\n staff(id, amount, level, value)\nTask: Retrieve id from employees with salary above the MAX(value) of staff rows sharing the same code.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE salary > (\n SELECT MAX(value) FROM staff AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "staff", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01009", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(salary, code, type, amount)\n requests(status, level, type, name)\nTask: Retrieve amount from invoices with amount above the MIN(value) of requests rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE amount > (\n SELECT MIN(value) FROM requests AS ordr\n WHERE ordr.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "requests", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01010", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(code, salary, level, status)\n managers(id, value, date, level)\nTask: Retrieve id from orders whose status is found in managers rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "managers", "outer_alias": "ord", "inner_alias": "mgr", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01011", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(level, amount, id, code)\n transactions(status, code, name, value)\nTask: Retrieve salary from products with salary above the AVG(salary) of transactions rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE salary > (\n SELECT AVG(salary) FROM transactions AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01012", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(salary, amount, status, date)\n staff(type, amount, salary, name)\nTask: Retrieve id from sales that have at least one corresponding entry in staff sharing the same level.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "staff", "outer_alias": "sale", "inner_alias": "empl", "proj_col": "id", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01013", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(type, amount, status, id)\n schedules(level, amount, status, name)\nTask: Find code from categories where a matching record exists in schedules with the same status.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "schedules", "outer_alias": "catg", "inner_alias": "schd", "proj_col": "code", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01014", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(status, value, type, date)\n items(value, status, code, name)\nTask: Find code from products where a matching record exists in items with the same id.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "items", "outer_alias": "prod", "inner_alias": "lne", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01015", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(date, salary, level, status)\n transactions(value, id, name, type)\nTask: Select code from invoices where status exists in transactions for the same type.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE status IN (\n SELECT status FROM transactions AS txn\n WHERE txn.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "transactions", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01016", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(type, value, date, level)\n products(status, level, value, code)\nTask: Retrieve code from accounts with value above the MIN(salary) of products rows sharing the same type.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE value > (\n SELECT MIN(salary) FROM products AS prod\n WHERE prod.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01017", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(code, type, amount, value)\n schedules(level, code, id, amount)\nTask: Retrieve name from invoices that have at least one corresponding entry in schedules sharing the same code.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "name", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01018", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(type, date, amount, salary)\n employees(name, type, salary, status)\nTask: Find id from shipments where a matching record exists in employees with the same status.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "employees", "outer_alias": "shp", "inner_alias": "emp", "proj_col": "id", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01019", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(value, id, status, amount)\n tasks(amount, name, date, id)\nTask: Retrieve id from customers with salary above the SUM(value) of tasks rows sharing the same type.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE salary > (\n SELECT SUM(value) FROM tasks AS tsk\n WHERE tsk.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "tasks", "outer_alias": "cust", "inner_alias": "tsk", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01020", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(type, id, salary, level)\n accounts(date, name, type, amount)\nTask: Find amount from departments where a matching record exists in accounts with the same level.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "accounts", "outer_alias": "dept", "inner_alias": "acct", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01021", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(amount, salary, name, value)\n products(value, code, id, type)\nTask: Find salary from projects where status appears in products entries with matching code.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "products", "outer_alias": "prj", "inner_alias": "prod", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01022", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(value, level, amount, type)\n sales(level, name, status, amount)\nTask: Retrieve value from tasks whose level is found in sales rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM sales AS sale\n WHERE sale.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "sales", "outer_alias": "tsk", "inner_alias": "sale", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01023", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(status, name, amount, type)\n shipments(type, date, amount, salary)\nTask: Retrieve code from projects that have at least one corresponding entry in shipments sharing the same level.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "shipments", "outer_alias": "prj", "inner_alias": "shp", "proj_col": "code", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01024", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(salary, id, status, value)\n items(value, amount, type, code)\nTask: Retrieve id from transactions that have at least one corresponding entry in items sharing the same status.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "items", "outer_alias": "txn", "inner_alias": "lne", "proj_col": "id", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01025", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(value, id, date, type)\n customers(date, level, salary, id)\nTask: Find amount from regions where a matching record exists in customers with the same status.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "customers", "outer_alias": "rgn", "inner_alias": "cust", "proj_col": "amount", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01026", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(id, type, value, date)\n requests(salary, amount, id, date)\nTask: Select salary from managers where code exists in requests for the same level.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01027", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(status, type, id, code)\n requests(salary, level, id, type)\nTask: Find id from shipments where a matching record exists in requests with the same id.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "requests", "outer_alias": "shp", "inner_alias": "ordr", "proj_col": "id", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01028", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(level, value, date, type)\n projects(salary, id, status, name)\nTask: Retrieve salary from regions with amount above the COUNT(value) of projects rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE amount > (\n SELECT COUNT(value) FROM projects AS prj\n WHERE prj.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "projects", "outer_alias": "rgn", "inner_alias": "prj", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01029", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(level, salary, value, name)\n tasks(salary, value, id, name)\nTask: Select amount from departments where type exists in tasks for the same status.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01030", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(salary, id, date, code)\n requests(status, id, salary, name)\nTask: Retrieve id from customers that have at least one corresponding entry in requests sharing the same status.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "requests", "outer_alias": "cust", "inner_alias": "ordr", "proj_col": "id", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01031", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(id, type, amount, name)\n orders(amount, code, level, value)\nTask: Retrieve salary from regions whose code is found in orders rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM orders AS ord\n WHERE ord.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "orders", "outer_alias": "rgn", "inner_alias": "ord", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01032", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(name, status, type, value)\n categories(type, level, id, status)\nTask: Find amount from requests where a matching record exists in categories with the same code.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "categories", "outer_alias": "ordr", "inner_alias": "catg", "proj_col": "amount", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01033", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(status, salary, type, value)\n orders(level, name, date, value)\nTask: Find value from items where a matching record exists in orders with the same id.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "orders", "outer_alias": "lne", "inner_alias": "ord", "proj_col": "value", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01034", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(date, level, value, id)\n regions(salary, date, type, amount)\nTask: Find salary from products where id appears in regions entries with matching status.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01035", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(type, code, name, id)\n requests(id, amount, type, status)\nTask: Retrieve code from staff with amount above the AVG(salary) of requests rows sharing the same type.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE amount > (\n SELECT AVG(salary) FROM requests AS ordr\n WHERE ordr.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "requests", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01036", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(code, value, date, type)\n staff(type, amount, status, value)\nTask: Retrieve name from accounts that have at least one corresponding entry in staff sharing the same id.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "name", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01037", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(type, id, value, amount)\n staff(status, id, date, value)\nTask: Retrieve amount from departments that have at least one corresponding entry in staff sharing the same type.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "amount", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01038", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(name, code, type, amount)\n tasks(status, level, date, value)\nTask: Find id from regions where a matching record exists in tasks with the same type.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "tasks", "outer_alias": "rgn", "inner_alias": "tsk", "proj_col": "id", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01039", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(code, type, name, salary)\n projects(level, salary, type, code)\nTask: Retrieve amount from schedules that have at least one corresponding entry in projects sharing the same status.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "projects", "outer_alias": "schd", "inner_alias": "prj", "proj_col": "amount", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01040", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(level, id, status, name)\n items(level, status, date, value)\nTask: Retrieve value from schedules that have at least one corresponding entry in items sharing the same level.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "value", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01041", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(name, id, status, code)\n schedules(level, code, id, salary)\nTask: Find value from transactions where amount exceeds the maximum salary from schedules for the same type.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE amount > (\n SELECT MAX(salary) FROM schedules AS schd\n WHERE schd.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "schedules", "outer_alias": "txn", "inner_alias": "schd", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01042", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(status, code, amount, type)\n staff(amount, name, type, status)\nTask: Select code from orders where level exists in staff for the same code.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "staff", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01043", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(code, name, date, status)\n employees(amount, code, id, level)\nTask: Find salary from requests where salary exceeds the count of salary from employees for the same type.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE salary > (\n SELECT COUNT(salary) FROM employees AS emp\n WHERE emp.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "employees", "outer_alias": "ordr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01044", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(code, id, date, level)\n schedules(level, value, code, date)\nTask: Retrieve id from employees whose id is found in schedules rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "schedules", "outer_alias": "emp", "inner_alias": "schd", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01045", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(salary, id, level, code)\n projects(date, id, level, salary)\nTask: Retrieve value from departments with amount above the SUM(salary) of projects rows sharing the same level.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE amount > (\n SELECT SUM(salary) FROM projects AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "projects", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01046", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(value, level, date, name)\n regions(salary, level, date, amount)\nTask: Retrieve salary from employees whose code is found in regions rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "regions", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01047", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(amount, salary, value, level)\n categories(id, status, level, amount)\nTask: Retrieve amount from shipments whose id is found in categories rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "categories", "outer_alias": "shp", "inner_alias": "catg", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01048", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(name, code, type, value)\n categories(date, code, status, id)\nTask: Find salary from projects where amount exceeds the minimum amount from categories for the same id.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE amount > (\n SELECT MIN(amount) FROM categories AS catg\n WHERE catg.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "categories", "outer_alias": "prj", "inner_alias": "catg", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01049", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(level, name, status, salary)\n projects(status, name, date, salary)\nTask: Retrieve value from requests with salary above the SUM(value) of projects rows sharing the same status.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE salary > (\n SELECT SUM(value) FROM projects AS prj\n WHERE prj.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "projects", "outer_alias": "ordr", "inner_alias": "prj", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01050", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(name, id, type, salary)\n shipments(id, salary, status, type)\nTask: Find id from branches where value exceeds the total salary from shipments for the same status.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE value > (\n SELECT SUM(salary) FROM shipments AS shp\n WHERE shp.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "shipments", "outer_alias": "brc", "inner_alias": "shp", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01051", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(type, salary, level, date)\n items(id, salary, level, amount)\nTask: Retrieve id from schedules that have at least one corresponding entry in items sharing the same code.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "id", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01052", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(salary, level, date, code)\n schedules(type, date, name, level)\nTask: Find code from regions where amount exceeds the count of value from schedules for the same code.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE amount > (\n SELECT COUNT(value) FROM schedules AS schd\n WHERE schd.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "schedules", "outer_alias": "rgn", "inner_alias": "schd", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01053", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(type, id, name, level)\n employees(name, level, status, value)\nTask: Retrieve value from items with amount above the MIN(amount) of employees rows sharing the same id.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE amount > (\n SELECT MIN(amount) FROM employees AS emp\n WHERE emp.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01054", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(status, type, code, date)\n products(id, code, value, level)\nTask: Find value from shipments where a matching record exists in products with the same code.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "value", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01055", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(value, salary, name, id)\n orders(value, name, type, level)\nTask: Select amount from requests where status exists in orders for the same id.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM orders AS ord\n WHERE ord.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "orders", "outer_alias": "ordr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01056", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(level, code, salary, value)\n employees(date, salary, type, value)\nTask: Retrieve value from invoices with salary above the AVG(salary) of employees rows sharing the same level.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE salary > (\n SELECT AVG(salary) FROM employees AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "employees", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01057", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(level, status, date, amount)\n regions(amount, level, status, salary)\nTask: Retrieve salary from categories that have at least one corresponding entry in regions sharing the same code.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "salary", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01058", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(type, value, level, salary)\n items(value, id, date, code)\nTask: Retrieve id from orders that have at least one corresponding entry in items sharing the same status.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01059", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(amount, level, salary, code)\n invoices(level, amount, value, status)\nTask: Retrieve salary from projects that have at least one corresponding entry in invoices sharing the same code.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "invoices", "outer_alias": "prj", "inner_alias": "inv", "proj_col": "salary", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01060", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(date, code, name, type)\n branches(date, name, amount, value)\nTask: Select amount from shipments where level exists in branches for the same level.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "branches", "outer_alias": "shp", "inner_alias": "brc", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01061", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(amount, value, salary, name)\n branches(date, code, value, amount)\nTask: Select id from items where status exists in branches for the same type.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01062", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(level, status, type, code)\n orders(type, salary, name, value)\nTask: Retrieve value from products with salary above the MIN(amount) of orders rows sharing the same type.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE salary > (\n SELECT MIN(amount) FROM orders AS ord\n WHERE ord.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "orders", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01063", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(date, name, amount, type)\n staff(value, amount, code, status)\nTask: Select name from departments where code exists in staff for the same code.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE code IN (\n SELECT code FROM staff AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01064", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(type, id, code, level)\n orders(date, type, salary, value)\nTask: Select id from categories where status exists in orders for the same id.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE status IN (\n SELECT status FROM orders AS ord\n WHERE ord.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "orders", "outer_alias": "catg", "inner_alias": "ord", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01065", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(id, type, salary, name)\n sales(name, amount, date, value)\nTask: Find salary from tasks where a matching record exists in sales with the same type.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "sales", "outer_alias": "tsk", "inner_alias": "sale", "proj_col": "salary", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01066", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(id, code, value, name)\n regions(name, date, code, status)\nTask: Select value from managers where code exists in regions for the same code.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "regions", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01067", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(name, value, date, status)\n sales(name, level, value, amount)\nTask: Find amount from requests where amount exceeds the maximum salary from sales for the same type.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE amount > (\n SELECT MAX(salary) FROM sales AS sale\n WHERE sale.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "sales", "outer_alias": "ordr", "inner_alias": "sale", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01068", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(salary, type, level, value)\n staff(name, salary, type, date)\nTask: Retrieve id from orders whose id is found in staff rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE id IN (\n SELECT id FROM staff AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "staff", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01069", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(status, amount, salary, type)\n customers(code, level, value, name)\nTask: Find amount from categories where amount exceeds the total amount from customers for the same status.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE amount > (\n SELECT SUM(amount) FROM customers AS cust\n WHERE cust.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "customers", "outer_alias": "catg", "inner_alias": "cust", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01070", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(name, type, level, salary)\n tasks(value, amount, id, status)\nTask: Find salary from accounts where salary exceeds the minimum value from tasks for the same level.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE salary > (\n SELECT MIN(value) FROM tasks AS tsk\n WHERE tsk.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "tasks", "outer_alias": "acct", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01071", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(value, date, id, type)\n accounts(salary, code, status, type)\nTask: Find amount from sales where status appears in accounts entries with matching level.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE status IN (\n SELECT status FROM accounts AS acct\n WHERE acct.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "accounts", "outer_alias": "sale", "inner_alias": "acct", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01072", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(value, status, level, code)\n branches(amount, code, value, name)\nTask: Find id from requests where salary exceeds the total salary from branches for the same id.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE salary > (\n SELECT SUM(salary) FROM branches AS brc\n WHERE brc.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "branches", "outer_alias": "ordr", "inner_alias": "brc", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01073", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(level, type, id, salary)\n orders(level, name, type, value)\nTask: Retrieve name from sales that have at least one corresponding entry in orders sharing the same level.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "orders", "outer_alias": "sale", "inner_alias": "ord", "proj_col": "name", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01074", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(level, code, type, id)\n invoices(code, name, status, value)\nTask: Retrieve amount from orders whose level is found in invoices rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE level IN (\n SELECT level FROM invoices AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "invoices", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01075", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(salary, level, type, value)\n staff(name, level, code, status)\nTask: Find id from transactions where code appears in staff entries with matching type.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM staff AS empl\n WHERE empl.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "staff", "outer_alias": "txn", "inner_alias": "empl", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01076", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(type, amount, date, code)\n customers(status, id, value, salary)\nTask: Retrieve code from departments that have at least one corresponding entry in customers sharing the same code.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "customers", "outer_alias": "dept", "inner_alias": "cust", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01077", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(status, amount, type, name)\n items(name, level, amount, date)\nTask: Select name from sales where type exists in items for the same status.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "items", "outer_alias": "sale", "inner_alias": "lne", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01078", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(salary, amount, type, level)\n staff(amount, type, salary, code)\nTask: Find code from categories where amount exceeds the total value from staff for the same id.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE amount > (\n SELECT SUM(value) FROM staff AS empl\n WHERE empl.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "staff", "outer_alias": "catg", "inner_alias": "empl", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01079", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(code, id, level, name)\n items(value, status, level, name)\nTask: Find salary from orders where status appears in items entries with matching id.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01080", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(date, salary, id, type)\n items(amount, salary, code, value)\nTask: Retrieve id from tasks with amount above the SUM(salary) of items rows sharing the same code.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE amount > (\n SELECT SUM(salary) FROM items AS lne\n WHERE lne.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "items", "outer_alias": "tsk", "inner_alias": "lne", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01081", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(name, id, level, date)\n products(value, type, amount, date)\nTask: Retrieve value from branches that have at least one corresponding entry in products sharing the same level.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "products", "outer_alias": "brc", "inner_alias": "prod", "proj_col": "value", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01082", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(date, status, type, name)\n departments(type, id, status, date)\nTask: Retrieve value from transactions that have at least one corresponding entry in departments sharing the same id.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "departments", "outer_alias": "txn", "inner_alias": "dept", "proj_col": "value", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01083", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(level, type, name, code)\n staff(level, status, salary, code)\nTask: Select id from categories where status exists in staff for the same type.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "staff", "outer_alias": "catg", "inner_alias": "empl", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01084", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(code, salary, value, level)\n departments(salary, code, type, value)\nTask: Find code from managers where a matching record exists in departments with the same id.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "departments", "outer_alias": "mgr", "inner_alias": "dept", "proj_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01085", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(salary, type, amount, id)\n managers(salary, status, amount, type)\nTask: Retrieve code from orders that have at least one corresponding entry in managers sharing the same status.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "managers", "outer_alias": "ord", "inner_alias": "mgr", "proj_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01086", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(level, amount, name, value)\n products(value, code, amount, salary)\nTask: Retrieve amount from invoices with salary above the MAX(amount) of products rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE salary > (\n SELECT MAX(amount) FROM products AS prod\n WHERE prod.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "products", "outer_alias": "inv", "inner_alias": "prod", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01087", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(id, level, type, name)\n branches(value, salary, amount, id)\nTask: Find name from requests where a matching record exists in branches with the same status.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "branches", "outer_alias": "ordr", "inner_alias": "brc", "proj_col": "name", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01088", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(code, level, amount, status)\n orders(type, id, name, code)\nTask: Find code from products where type appears in orders entries with matching status.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE type IN (\n SELECT type FROM orders AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "orders", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01089", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(date, level, salary, amount)\n categories(date, value, status, name)\nTask: Find name from items where a matching record exists in categories with the same level.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "name", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01090", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(salary, status, level, value)\n managers(level, name, value, code)\nTask: Retrieve amount from transactions whose code is found in managers rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM managers AS mgr\n WHERE mgr.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "managers", "outer_alias": "txn", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01091", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(name, salary, level, value)\n staff(status, level, id, name)\nTask: Retrieve value from accounts whose status is found in staff rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01092", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(amount, name, id, level)\n projects(name, salary, value, code)\nTask: Retrieve salary from tasks with value above the AVG(salary) of projects rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE value > (\n SELECT AVG(salary) FROM projects AS prj\n WHERE prj.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "projects", "outer_alias": "tsk", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01093", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(value, salary, date, code)\n categories(name, level, date, value)\nTask: Retrieve id from invoices whose id is found in categories rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "categories", "outer_alias": "inv", "inner_alias": "catg", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01094", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(date, type, value, name)\n staff(date, name, amount, code)\nTask: Retrieve id from requests whose code is found in staff rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM staff AS empl\n WHERE empl.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "staff", "outer_alias": "ordr", "inner_alias": "empl", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01095", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(level, amount, type, salary)\n requests(status, value, amount, level)\nTask: Retrieve amount from branches with amount above the SUM(salary) of requests rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE amount > (\n SELECT SUM(salary) FROM requests AS ordr\n WHERE ordr.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "requests", "outer_alias": "brc", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01096", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(value, code, amount, status)\n managers(status, level, id, value)\nTask: Retrieve name from categories whose level is found in managers rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "managers", "outer_alias": "catg", "inner_alias": "mgr", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01097", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(level, name, code, type)\n departments(level, type, id, status)\nTask: Select amount from branches where id exists in departments for the same level.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE id IN (\n SELECT id FROM departments AS dept\n WHERE dept.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "departments", "outer_alias": "brc", "inner_alias": "dept", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01098", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(status, name, salary, amount)\n items(type, status, salary, code)\nTask: Find code from regions where a matching record exists in items with the same status.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "items", "outer_alias": "rgn", "inner_alias": "lne", "proj_col": "code", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01099", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(status, value, date, code)\n regions(code, level, salary, date)\nTask: Retrieve value from products that have at least one corresponding entry in regions sharing the same type.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01100", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(type, status, name, level)\n departments(name, code, status, date)\nTask: Select amount from employees where status exists in departments for the same status.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE status IN (\n SELECT status FROM departments AS dept\n WHERE dept.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "departments", "outer_alias": "emp", "inner_alias": "dept", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01101", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(level, status, code, amount)\n departments(value, amount, code, type)\nTask: Retrieve amount from projects with salary above the MIN(salary) of departments rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE salary > (\n SELECT MIN(salary) FROM departments AS dept\n WHERE dept.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "departments", "outer_alias": "prj", "inner_alias": "dept", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01102", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(salary, id, level, code)\n products(id, level, name, amount)\nTask: Retrieve amount from projects that have at least one corresponding entry in products sharing the same id.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "products", "outer_alias": "prj", "inner_alias": "prod", "proj_col": "amount", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01103", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(status, level, value, name)\n accounts(code, type, id, amount)\nTask: Find value from shipments where type appears in accounts entries with matching id.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "accounts", "outer_alias": "shp", "inner_alias": "acct", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01104", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(id, name, type, amount)\n departments(level, code, id, name)\nTask: Retrieve name from requests with amount above the MIN(value) of departments rows sharing the same code.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE amount > (\n SELECT MIN(value) FROM departments AS dept\n WHERE dept.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "departments", "outer_alias": "ordr", "inner_alias": "dept", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01105", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(salary, level, id, name)\n projects(date, salary, value, code)\nTask: Retrieve id from transactions that have at least one corresponding entry in projects sharing the same id.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "id", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01106", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(date, code, type, level)\n departments(status, name, value, amount)\nTask: Retrieve salary from projects whose status is found in departments rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE status IN (\n SELECT status FROM departments AS dept\n WHERE dept.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "departments", "outer_alias": "prj", "inner_alias": "dept", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01107", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(status, name, type, value)\n tasks(amount, code, name, salary)\nTask: Find name from schedules where salary exceeds the maximum value from tasks for the same type.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE salary > (\n SELECT MAX(value) FROM tasks AS tsk\n WHERE tsk.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "tasks", "outer_alias": "schd", "inner_alias": "tsk", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01108", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(date, salary, status, id)\n projects(date, amount, value, status)\nTask: Retrieve amount from employees with amount above the MAX(amount) of projects rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE amount > (\n SELECT MAX(amount) FROM projects AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "projects", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01109", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(code, salary, type, date)\n orders(type, status, amount, date)\nTask: Find name from projects where value exceeds the minimum value from orders for the same id.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE value > (\n SELECT MIN(value) FROM orders AS ord\n WHERE ord.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01110", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(level, type, code, amount)\n categories(type, amount, status, name)\nTask: Retrieve name from sales with value above the COUNT(amount) of categories rows sharing the same level.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE value > (\n SELECT COUNT(amount) FROM categories AS catg\n WHERE catg.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "categories", "outer_alias": "sale", "inner_alias": "catg", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01111", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(amount, salary, type, code)\n products(id, amount, salary, status)\nTask: Find amount from requests where a matching record exists in products with the same status.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "products", "outer_alias": "ordr", "inner_alias": "prod", "proj_col": "amount", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01112", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(status, code, level, date)\n sales(value, name, id, amount)\nTask: Find code from projects where status appears in sales entries with matching code.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "sales", "outer_alias": "prj", "inner_alias": "sale", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01113", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(id, salary, level, code)\n accounts(date, name, level, status)\nTask: Retrieve amount from invoices with amount above the AVG(value) of accounts rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE amount > (\n SELECT AVG(value) FROM accounts AS acct\n WHERE acct.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01114", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(type, code, name, amount)\n projects(amount, code, salary, date)\nTask: Find code from shipments where value exceeds the maximum salary from projects for the same level.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE value > (\n SELECT MAX(salary) FROM projects AS prj\n WHERE prj.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "projects", "outer_alias": "shp", "inner_alias": "prj", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01115", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(amount, salary, level, code)\n accounts(date, value, status, amount)\nTask: Retrieve value from requests that have at least one corresponding entry in accounts sharing the same level.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "accounts", "outer_alias": "ordr", "inner_alias": "acct", "proj_col": "value", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01116", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(type, value, id, status)\n shipments(code, amount, date, name)\nTask: Retrieve id from schedules with salary above the MAX(amount) of shipments rows sharing the same id.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE salary > (\n SELECT MAX(amount) FROM shipments AS shp\n WHERE shp.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "shipments", "outer_alias": "schd", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01117", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(code, value, id, date)\n orders(name, code, id, salary)\nTask: Select id from customers where type exists in orders for the same code.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE type IN (\n SELECT type FROM orders AS ord\n WHERE ord.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "orders", "outer_alias": "cust", "inner_alias": "ord", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01118", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(salary, type, value, code)\n transactions(amount, code, name, id)\nTask: Retrieve name from branches with salary above the MIN(value) of transactions rows sharing the same type.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE salary > (\n SELECT MIN(value) FROM transactions AS txn\n WHERE txn.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "transactions", "outer_alias": "brc", "inner_alias": "txn", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01119", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(amount, code, value, id)\n projects(status, salary, code, id)\nTask: Find name from transactions where level appears in projects entries with matching level.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01120", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(id, level, amount, code)\n categories(type, value, status, amount)\nTask: Select id from items where status exists in categories for the same level.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE status IN (\n SELECT status FROM categories AS catg\n WHERE catg.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01121", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(value, name, salary, amount)\n products(type, level, id, amount)\nTask: Select id from departments where id exists in products for the same code.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "products", "outer_alias": "dept", "inner_alias": "prod", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01122", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(level, name, amount, code)\n sales(id, value, salary, amount)\nTask: Retrieve value from departments that have at least one corresponding entry in sales sharing the same status.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "sales", "outer_alias": "dept", "inner_alias": "sale", "proj_col": "value", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01123", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(status, id, code, salary)\n employees(value, name, type, level)\nTask: Retrieve code from schedules with amount above the AVG(amount) of employees rows sharing the same id.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE amount > (\n SELECT AVG(amount) FROM employees AS emp\n WHERE emp.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01124", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(status, value, salary, level)\n orders(status, code, name, salary)\nTask: Find name from accounts where a matching record exists in orders with the same type.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "orders", "outer_alias": "acct", "inner_alias": "ord", "proj_col": "name", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01125", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(type, salary, date, level)\n regions(code, date, salary, value)\nTask: Retrieve id from staff with value above the COUNT(salary) of regions rows sharing the same level.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE value > (\n SELECT COUNT(salary) FROM regions AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "regions", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01126", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(name, code, value, date)\n projects(amount, salary, date, value)\nTask: Find code from departments where salary exceeds the total amount from projects for the same code.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE salary > (\n SELECT SUM(amount) FROM projects AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "projects", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01127", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(code, amount, level, name)\n projects(value, code, amount, type)\nTask: Find value from invoices where level appears in projects entries with matching level.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "projects", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01128", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(level, date, value, type)\n schedules(level, salary, code, amount)\nTask: Retrieve code from managers with value above the AVG(amount) of schedules rows sharing the same type.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM schedules AS schd\n WHERE schd.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "schedules", "outer_alias": "mgr", "inner_alias": "schd", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01129", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(type, code, value, id)\n accounts(code, salary, name, amount)\nTask: Retrieve id from customers whose status is found in accounts rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE status IN (\n SELECT status FROM accounts AS acct\n WHERE acct.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "accounts", "outer_alias": "cust", "inner_alias": "acct", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01130", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(code, id, level, value)\n regions(name, salary, date, status)\nTask: Find amount from transactions where value exceeds the average amount from regions for the same id.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE value > (\n SELECT AVG(amount) FROM regions AS rgn\n WHERE rgn.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01131", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(date, amount, value, salary)\n regions(value, name, date, level)\nTask: Retrieve code from managers that have at least one corresponding entry in regions sharing the same status.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "regions", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01132", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(value, status, id, type)\n transactions(type, id, date, status)\nTask: Find amount from requests where amount exceeds the maximum amount from transactions for the same level.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE amount > (\n SELECT MAX(amount) FROM transactions AS txn\n WHERE txn.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01133", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(name, status, value, date)\n customers(code, level, type, name)\nTask: Find salary from orders where value exceeds the minimum value from customers for the same id.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE value > (\n SELECT MIN(value) FROM customers AS cust\n WHERE cust.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "customers", "outer_alias": "ord", "inner_alias": "cust", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01134", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(salary, value, code, type)\n customers(date, value, id, salary)\nTask: Find id from accounts where code appears in customers entries with matching level.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "customers", "outer_alias": "acct", "inner_alias": "cust", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01135", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(level, value, status, date)\n products(amount, level, type, status)\nTask: Retrieve amount from orders whose level is found in products rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "products", "outer_alias": "ord", "inner_alias": "prod", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01136", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(date, level, name, status)\n products(date, name, type, level)\nTask: Select code from employees where status exists in products for the same status.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01137", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(date, id, amount, salary)\n invoices(amount, type, level, id)\nTask: Find amount from orders where value exceeds the average salary from invoices for the same code.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE value > (\n SELECT AVG(salary) FROM invoices AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "invoices", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01138", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(salary, code, amount, status)\n categories(status, value, name, salary)\nTask: Find salary from items where a matching record exists in categories with the same level.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "salary", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01139", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(level, name, type, date)\n accounts(id, salary, level, type)\nTask: Select id from invoices where id exists in accounts for the same type.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM accounts AS acct\n WHERE acct.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01140", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(salary, value, amount, type)\n customers(level, code, name, date)\nTask: Retrieve value from departments that have at least one corresponding entry in customers sharing the same code.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "customers", "outer_alias": "dept", "inner_alias": "cust", "proj_col": "value", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01141", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(salary, value, amount, type)\n products(id, code, name, type)\nTask: Find salary from invoices where status appears in products entries with matching type.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "products", "outer_alias": "inv", "inner_alias": "prod", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01142", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(level, status, name, date)\n sales(date, value, id, code)\nTask: Retrieve id from employees whose type is found in sales rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE type IN (\n SELECT type FROM sales AS sale\n WHERE sale.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "sales", "outer_alias": "emp", "inner_alias": "sale", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01143", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(salary, date, level, value)\n tasks(type, salary, value, level)\nTask: Find value from managers where id appears in tasks entries with matching code.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM tasks AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "tasks", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01144", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(name, level, id, salary)\n items(id, code, value, status)\nTask: Find name from branches where amount exceeds the minimum salary from items for the same type.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE amount > (\n SELECT MIN(salary) FROM items AS lne\n WHERE lne.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "items", "outer_alias": "brc", "inner_alias": "lne", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01145", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(name, amount, date, status)\n products(type, date, value, salary)\nTask: Find amount from sales where amount exceeds the maximum value from products for the same status.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE amount > (\n SELECT MAX(value) FROM products AS prod\n WHERE prod.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "products", "outer_alias": "sale", "inner_alias": "prod", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01146", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(level, salary, amount, type)\n regions(level, amount, value, code)\nTask: Retrieve value from categories that have at least one corresponding entry in regions sharing the same status.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "value", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01147", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, level, status, amount)\n staff(id, date, name, code)\nTask: Retrieve salary from shipments whose code is found in staff rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM staff AS empl\n WHERE empl.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "staff", "outer_alias": "shp", "inner_alias": "empl", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01148", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(name, salary, date, level)\n transactions(value, type, salary, code)\nTask: Retrieve amount from requests whose code is found in transactions rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01149", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(status, date, value, level)\n accounts(id, level, salary, type)\nTask: Find code from managers where value exceeds the maximum salary from accounts for the same id.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE value > (\n SELECT MAX(salary) FROM accounts AS acct\n WHERE acct.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "accounts", "outer_alias": "mgr", "inner_alias": "acct", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01150", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(date, value, name, type)\n orders(id, level, name, status)\nTask: Find salary from products where code appears in orders entries with matching id.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE code IN (\n SELECT code FROM orders AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "orders", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01151", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(code, salary, value, id)\n managers(id, salary, name, level)\nTask: Find salary from departments where a matching record exists in managers with the same level.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "managers", "outer_alias": "dept", "inner_alias": "mgr", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01152", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(level, status, date, amount)\n requests(code, type, date, level)\nTask: Find name from items where a matching record exists in requests with the same id.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "requests", "outer_alias": "lne", "inner_alias": "ordr", "proj_col": "name", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01153", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(level, type, status, amount)\n products(status, name, value, level)\nTask: Select code from projects where status exists in products for the same level.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "products", "outer_alias": "prj", "inner_alias": "prod", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01154", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(level, salary, name, code)\n requests(type, amount, value, id)\nTask: Retrieve amount from transactions that have at least one corresponding entry in requests sharing the same status.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "requests", "outer_alias": "txn", "inner_alias": "ordr", "proj_col": "amount", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01155", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(level, value, type, date)\n sales(id, name, amount, type)\nTask: Retrieve id from regions that have at least one corresponding entry in sales sharing the same id.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "sales", "outer_alias": "rgn", "inner_alias": "sale", "proj_col": "id", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01156", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(date, salary, amount, code)\n employees(type, status, salary, amount)\nTask: Select amount from staff where status exists in employees for the same code.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01157", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(code, level, value, name)\n products(code, id, status, amount)\nTask: Find amount from regions where a matching record exists in products with the same code.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "amount", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01158", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(date, type, level, id)\n managers(type, amount, code, value)\nTask: Select amount from schedules where id exists in managers for the same id.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01159", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(code, status, amount, date)\n employees(value, name, amount, date)\nTask: Retrieve value from accounts that have at least one corresponding entry in employees sharing the same type.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "employees", "outer_alias": "acct", "inner_alias": "emp", "proj_col": "value", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01160", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(salary, date, id, code)\n schedules(code, type, salary, status)\nTask: Find value from tasks where value exceeds the total amount from schedules for the same type.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE value > (\n SELECT SUM(amount) FROM schedules AS schd\n WHERE schd.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "schedules", "outer_alias": "tsk", "inner_alias": "schd", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01161", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(salary, type, status, code)\n projects(status, level, type, salary)\nTask: Select value from regions where status exists in projects for the same code.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE status IN (\n SELECT status FROM projects AS prj\n WHERE prj.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "projects", "outer_alias": "rgn", "inner_alias": "prj", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01162", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(date, value, status, amount)\n staff(name, id, amount, status)\nTask: Find amount from transactions where a matching record exists in staff with the same id.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "staff", "outer_alias": "txn", "inner_alias": "empl", "proj_col": "amount", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01163", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(salary, status, type, name)\n schedules(salary, date, status, code)\nTask: Select salary from accounts where id exists in schedules for the same level.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "schedules", "outer_alias": "acct", "inner_alias": "schd", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01164", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(salary, level, amount, value)\n customers(name, date, level, amount)\nTask: Find code from tasks where salary exceeds the maximum amount from customers for the same id.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE salary > (\n SELECT MAX(amount) FROM customers AS cust\n WHERE cust.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "customers", "outer_alias": "tsk", "inner_alias": "cust", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01165", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(code, id, level, name)\n categories(code, salary, amount, type)\nTask: Find salary from managers where id appears in categories entries with matching status.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "categories", "outer_alias": "mgr", "inner_alias": "catg", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01166", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(code, date, name, status)\n invoices(type, value, salary, name)\nTask: Retrieve name from managers with salary above the MIN(salary) of invoices rows sharing the same level.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE salary > (\n SELECT MIN(salary) FROM invoices AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "invoices", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01167", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(id, name, date, type)\n products(date, code, status, level)\nTask: Find code from transactions where a matching record exists in products with the same level.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "code", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01168", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(amount, name, value, salary)\n managers(date, value, type, status)\nTask: Find salary from products where type appears in managers entries with matching status.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "managers", "outer_alias": "prod", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01169", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(salary, type, date, value)\n products(date, status, level, id)\nTask: Retrieve value from sales whose level is found in products rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "products", "outer_alias": "sale", "inner_alias": "prod", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01170", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(value, amount, code, date)\n orders(code, name, status, level)\nTask: Retrieve id from shipments that have at least one corresponding entry in orders sharing the same type.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "orders", "outer_alias": "shp", "inner_alias": "ord", "proj_col": "id", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01171", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(id, value, name, level)\n departments(id, value, code, amount)\nTask: Retrieve id from tasks that have at least one corresponding entry in departments sharing the same code.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "departments", "outer_alias": "tsk", "inner_alias": "dept", "proj_col": "id", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01172", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(id, amount, level, value)\n staff(level, name, value, status)\nTask: Find code from requests where a matching record exists in staff with the same status.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "staff", "outer_alias": "ordr", "inner_alias": "empl", "proj_col": "code", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01173", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(date, name, id, type)\n projects(salary, date, code, name)\nTask: Find value from transactions where amount exceeds the minimum amount from projects for the same type.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE amount > (\n SELECT MIN(amount) FROM projects AS prj\n WHERE prj.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01174", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(salary, value, name, id)\n departments(value, amount, name, level)\nTask: Find id from transactions where a matching record exists in departments with the same id.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "departments", "outer_alias": "txn", "inner_alias": "dept", "proj_col": "id", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01175", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(value, name, id, amount)\n transactions(amount, name, id, status)\nTask: Find id from tasks where value exceeds the average value from transactions for the same code.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE value > (\n SELECT AVG(value) FROM transactions AS txn\n WHERE txn.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "transactions", "outer_alias": "tsk", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01176", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(id, level, value, date)\n accounts(date, code, name, value)\nTask: Find code from items where a matching record exists in accounts with the same code.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "accounts", "outer_alias": "lne", "inner_alias": "acct", "proj_col": "code", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01177", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(salary, code, amount, status)\n accounts(code, amount, salary, name)\nTask: Find code from items where a matching record exists in accounts with the same code.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "accounts", "outer_alias": "lne", "inner_alias": "acct", "proj_col": "code", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01178", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(status, id, date, name)\n branches(salary, date, value, code)\nTask: Retrieve amount from regions that have at least one corresponding entry in branches sharing the same id.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "branches", "outer_alias": "rgn", "inner_alias": "brc", "proj_col": "amount", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01179", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(id, level, salary, code)\n employees(name, salary, date, amount)\nTask: Find id from shipments where amount exceeds the count of salary from employees for the same status.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE amount > (\n SELECT COUNT(salary) FROM employees AS emp\n WHERE emp.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "employees", "outer_alias": "shp", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01180", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(amount, date, code, salary)\n projects(date, status, name, salary)\nTask: Find code from managers where amount exceeds the average salary from projects for the same status.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE amount > (\n SELECT AVG(salary) FROM projects AS prj\n WHERE prj.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "projects", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01181", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(id, type, salary, value)\n requests(name, amount, status, level)\nTask: Retrieve salary from products with salary above the MIN(value) of requests rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE salary > (\n SELECT MIN(value) FROM requests AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "requests", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01182", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(date, type, value, salary)\n projects(value, id, status, type)\nTask: Find amount from regions where a matching record exists in projects with the same status.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "projects", "outer_alias": "rgn", "inner_alias": "prj", "proj_col": "amount", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01183", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(type, value, amount, date)\n tasks(status, id, amount, salary)\nTask: Find code from shipments where a matching record exists in tasks with the same level.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "code", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01184", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(level, salary, name, date)\n staff(salary, level, date, code)\nTask: Retrieve name from orders that have at least one corresponding entry in staff sharing the same level.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "staff", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01185", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(date, id, status, value)\n items(code, amount, salary, date)\nTask: Find value from employees where a matching record exists in items with the same code.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "items", "outer_alias": "emp", "inner_alias": "lne", "proj_col": "value", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01186", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(code, name, id, type)\n transactions(code, type, level, id)\nTask: Retrieve salary from branches with value above the COUNT(amount) of transactions rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE value > (\n SELECT COUNT(amount) FROM transactions AS txn\n WHERE txn.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "transactions", "outer_alias": "brc", "inner_alias": "txn", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01187", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(code, status, id, level)\n regions(salary, level, name, status)\nTask: Find value from branches where a matching record exists in regions with the same level.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "regions", "outer_alias": "brc", "inner_alias": "rgn", "proj_col": "value", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01188", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(date, name, amount, status)\n branches(id, date, type, name)\nTask: Retrieve amount from regions that have at least one corresponding entry in branches sharing the same level.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "branches", "outer_alias": "rgn", "inner_alias": "brc", "proj_col": "amount", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01189", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(salary, code, amount, date)\n accounts(status, salary, code, id)\nTask: Retrieve id from departments that have at least one corresponding entry in accounts sharing the same status.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "accounts", "outer_alias": "dept", "inner_alias": "acct", "proj_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01190", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(level, name, id, code)\n staff(id, date, value, type)\nTask: Retrieve salary from shipments that have at least one corresponding entry in staff sharing the same id.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "staff", "outer_alias": "shp", "inner_alias": "empl", "proj_col": "salary", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01191", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(code, name, amount, value)\n orders(status, name, id, value)\nTask: Find name from requests where a matching record exists in orders with the same code.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "orders", "outer_alias": "ordr", "inner_alias": "ord", "proj_col": "name", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01192", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(code, status, name, value)\n departments(type, amount, code, value)\nTask: Retrieve code from invoices that have at least one corresponding entry in departments sharing the same type.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "departments", "outer_alias": "inv", "inner_alias": "dept", "proj_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01193", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(id, amount, date, status)\n requests(amount, date, code, salary)\nTask: Retrieve amount from employees with value above the AVG(salary) of requests rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE value > (\n SELECT AVG(salary) FROM requests AS ordr\n WHERE ordr.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "requests", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01194", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(status, code, level, date)\n branches(level, amount, type, code)\nTask: Retrieve name from managers that have at least one corresponding entry in branches sharing the same status.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "branches", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01195", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(date, level, value, code)\n categories(level, date, value, id)\nTask: Find code from orders where salary exceeds the average salary from categories for the same status.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE salary > (\n SELECT AVG(salary) FROM categories AS catg\n WHERE catg.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "categories", "outer_alias": "ord", "inner_alias": "catg", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01196", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(level, name, type, status)\n sales(status, value, level, name)\nTask: Find name from schedules where amount exceeds the count of salary from sales for the same id.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE amount > (\n SELECT COUNT(salary) FROM sales AS sale\n WHERE sale.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "sales", "outer_alias": "schd", "inner_alias": "sale", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01197", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(date, value, type, id)\n regions(level, status, date, code)\nTask: Retrieve code from managers whose level is found in regions rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "regions", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01198", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(amount, level, salary, id)\n items(amount, level, name, status)\nTask: Retrieve amount from orders whose type is found in items rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01199", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(id, value, type, date)\n items(level, amount, value, type)\nTask: Find code from sales where value exceeds the average salary from items for the same status.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE value > (\n SELECT AVG(salary) FROM items AS lne\n WHERE lne.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "items", "outer_alias": "sale", "inner_alias": "lne", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01200", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(type, value, level, salary)\n schedules(amount, name, salary, id)\nTask: Retrieve salary from orders that have at least one corresponding entry in schedules sharing the same level.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "schedules", "outer_alias": "ord", "inner_alias": "schd", "proj_col": "salary", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01201", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(type, name, salary, code)\n accounts(date, type, name, code)\nTask: Find amount from shipments where a matching record exists in accounts with the same status.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "accounts", "outer_alias": "shp", "inner_alias": "acct", "proj_col": "amount", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01202", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(name, type, amount, id)\n invoices(salary, status, amount, level)\nTask: Retrieve name from managers with salary above the MIN(salary) of invoices rows sharing the same status.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE salary > (\n SELECT MIN(salary) FROM invoices AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "invoices", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01203", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(status, name, date, salary)\n projects(name, value, type, code)\nTask: Retrieve salary from accounts whose level is found in projects rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "projects", "outer_alias": "acct", "inner_alias": "prj", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01204", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, code, date, type)\n projects(level, type, name, value)\nTask: Select amount from shipments where type exists in projects for the same level.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM projects AS prj\n WHERE prj.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "projects", "outer_alias": "shp", "inner_alias": "prj", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01205", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(name, amount, id, salary)\n branches(type, status, salary, id)\nTask: Retrieve code from sales with value above the SUM(amount) of branches rows sharing the same type.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE value > (\n SELECT SUM(amount) FROM branches AS brc\n WHERE brc.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "branches", "outer_alias": "sale", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01206", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(amount, status, name, date)\n orders(code, type, status, level)\nTask: Find code from products where a matching record exists in orders with the same type.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "orders", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01207", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(amount, code, salary, date)\n managers(amount, level, name, date)\nTask: Find name from schedules where a matching record exists in managers with the same level.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "name", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01208", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(name, salary, status, id)\n customers(date, level, salary, value)\nTask: Retrieve name from regions whose type is found in customers rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "customers", "outer_alias": "rgn", "inner_alias": "cust", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01209", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(level, type, code, salary)\n products(level, value, type, amount)\nTask: Retrieve name from projects with value above the COUNT(salary) of products rows sharing the same status.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE value > (\n SELECT COUNT(salary) FROM products AS prod\n WHERE prod.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "products", "outer_alias": "prj", "inner_alias": "prod", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01210", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(name, status, salary, amount)\n schedules(type, amount, code, salary)\nTask: Retrieve name from employees that have at least one corresponding entry in schedules sharing the same status.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "schedules", "outer_alias": "emp", "inner_alias": "schd", "proj_col": "name", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01211", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(date, name, salary, amount)\n staff(level, value, salary, status)\nTask: Retrieve salary from departments that have at least one corresponding entry in staff sharing the same code.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01212", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(code, value, date, status)\n sales(status, id, code, level)\nTask: Find amount from products where salary exceeds the total salary from sales for the same status.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE salary > (\n SELECT SUM(salary) FROM sales AS sale\n WHERE sale.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "sales", "outer_alias": "prod", "inner_alias": "sale", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01213", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(name, type, value, salary)\n items(status, date, type, code)\nTask: Find code from accounts where status appears in items entries with matching id.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "items", "outer_alias": "acct", "inner_alias": "lne", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01214", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(date, salary, type, name)\n departments(type, salary, name, id)\nTask: Select name from requests where code exists in departments for the same type.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "departments", "outer_alias": "ordr", "inner_alias": "dept", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01215", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(name, amount, salary, date)\n accounts(date, id, value, status)\nTask: Retrieve salary from shipments with salary above the COUNT(salary) of accounts rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE salary > (\n SELECT COUNT(salary) FROM accounts AS acct\n WHERE acct.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "accounts", "outer_alias": "shp", "inner_alias": "acct", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01216", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(value, amount, code, type)\n sales(id, date, status, type)\nTask: Find name from schedules where a matching record exists in sales with the same type.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "sales", "outer_alias": "schd", "inner_alias": "sale", "proj_col": "name", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01217", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(level, amount, code, value)\n managers(code, date, id, status)\nTask: Retrieve id from tasks whose type is found in managers rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "managers", "outer_alias": "tsk", "inner_alias": "mgr", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01218", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(amount, date, code, name)\n tasks(level, status, name, salary)\nTask: Retrieve id from categories with amount above the MIN(amount) of tasks rows sharing the same type.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE amount > (\n SELECT MIN(amount) FROM tasks AS tsk\n WHERE tsk.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "tasks", "outer_alias": "catg", "inner_alias": "tsk", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01219", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(name, amount, id, value)\n categories(type, value, amount, status)\nTask: Select value from departments where id exists in categories for the same level.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "categories", "outer_alias": "dept", "inner_alias": "catg", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01220", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(status, code, amount, level)\n shipments(status, name, code, level)\nTask: Retrieve name from invoices that have at least one corresponding entry in shipments sharing the same id.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "name", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01221", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(date, name, status, level)\n categories(id, salary, code, date)\nTask: Find salary from items where value exceeds the average salary from categories for the same code.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE value > (\n SELECT AVG(salary) FROM categories AS catg\n WHERE catg.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01222", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(code, date, id, level)\n sales(id, amount, level, value)\nTask: Find id from accounts where value exceeds the count of amount from sales for the same code.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE value > (\n SELECT COUNT(amount) FROM sales AS sale\n WHERE sale.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "sales", "outer_alias": "acct", "inner_alias": "sale", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01223", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(value, amount, id, status)\n accounts(name, level, salary, type)\nTask: Retrieve id from invoices with salary above the AVG(salary) of accounts rows sharing the same id.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE salary > (\n SELECT AVG(salary) FROM accounts AS acct\n WHERE acct.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01224", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(date, value, name, salary)\n departments(id, name, amount, date)\nTask: Find salary from employees where a matching record exists in departments with the same code.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "departments", "outer_alias": "emp", "inner_alias": "dept", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01225", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(amount, id, name, value)\n shipments(date, salary, status, type)\nTask: Find id from transactions where value exceeds the average salary from shipments for the same code.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE value > (\n SELECT AVG(salary) FROM shipments AS shp\n WHERE shp.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "shipments", "outer_alias": "txn", "inner_alias": "shp", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01226", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(name, amount, id, status)\n accounts(status, name, level, date)\nTask: Retrieve amount from shipments that have at least one corresponding entry in accounts sharing the same id.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "accounts", "outer_alias": "shp", "inner_alias": "acct", "proj_col": "amount", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01227", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(date, code, type, amount)\n invoices(level, status, value, name)\nTask: Retrieve id from projects with salary above the MAX(salary) of invoices rows sharing the same id.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE salary > (\n SELECT MAX(salary) FROM invoices AS inv\n WHERE inv.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "invoices", "outer_alias": "prj", "inner_alias": "inv", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01228", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(id, amount, type, status)\n customers(id, name, status, date)\nTask: Find name from tasks where a matching record exists in customers with the same type.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "customers", "outer_alias": "tsk", "inner_alias": "cust", "proj_col": "name", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01229", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(amount, code, id, level)\n staff(date, code, value, status)\nTask: Retrieve id from requests whose status is found in staff rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "staff", "outer_alias": "ordr", "inner_alias": "empl", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01230", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(status, name, code, level)\n projects(name, amount, type, value)\nTask: Retrieve amount from staff that have at least one corresponding entry in projects sharing the same level.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "projects", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "amount", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01231", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(status, value, salary, level)\n projects(salary, value, id, name)\nTask: Find value from regions where code appears in projects entries with matching type.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "projects", "outer_alias": "rgn", "inner_alias": "prj", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01232", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(value, status, id, type)\n managers(name, salary, level, date)\nTask: Retrieve name from products with value above the MAX(amount) of managers rows sharing the same id.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE value > (\n SELECT MAX(amount) FROM managers AS mgr\n WHERE mgr.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "managers", "outer_alias": "prod", "inner_alias": "mgr", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01233", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(amount, salary, type, code)\n staff(type, name, value, amount)\nTask: Find salary from items where status appears in staff entries with matching level.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "staff", "outer_alias": "lne", "inner_alias": "empl", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01234", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(type, level, amount, date)\n projects(name, type, level, date)\nTask: Find id from staff where value exceeds the minimum value from projects for the same code.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE value > (\n SELECT MIN(value) FROM projects AS prj\n WHERE prj.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "projects", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01235", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(level, amount, salary, date)\n sales(type, date, name, id)\nTask: Find name from managers where salary exceeds the count of amount from sales for the same level.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE salary > (\n SELECT COUNT(amount) FROM sales AS sale\n WHERE sale.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "sales", "outer_alias": "mgr", "inner_alias": "sale", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01236", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(date, level, id, amount)\n orders(name, level, value, amount)\nTask: Retrieve id from requests whose id is found in orders rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE id IN (\n SELECT id FROM orders AS ord\n WHERE ord.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "orders", "outer_alias": "ordr", "inner_alias": "ord", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01237", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(name, status, date, value)\n items(type, name, salary, code)\nTask: Retrieve name from orders with amount above the MIN(value) of items rows sharing the same code.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE amount > (\n SELECT MIN(value) FROM items AS lne\n WHERE lne.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01238", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(id, value, type, salary)\n tasks(id, type, name, salary)\nTask: Find id from orders where status appears in tasks entries with matching type.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE status IN (\n SELECT status FROM tasks AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "tasks", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01239", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(status, date, level, amount)\n transactions(code, date, name, salary)\nTask: Find id from orders where a matching record exists in transactions with the same status.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01240", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(salary, type, name, level)\n items(salary, id, level, name)\nTask: Retrieve value from schedules with value above the AVG(value) of items rows sharing the same status.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE value > (\n SELECT AVG(value) FROM items AS lne\n WHERE lne.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01241", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(date, amount, value, level)\n requests(amount, level, type, status)\nTask: Retrieve amount from customers with amount above the MAX(value) of requests rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE amount > (\n SELECT MAX(value) FROM requests AS ordr\n WHERE ordr.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "requests", "outer_alias": "cust", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01242", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(id, type, name, salary)\n branches(value, salary, name, level)\nTask: Find code from categories where id appears in branches entries with matching code.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE id IN (\n SELECT id FROM branches AS brc\n WHERE brc.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01243", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(amount, type, level, id)\n products(code, name, amount, date)\nTask: Find id from regions where a matching record exists in products with the same code.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "id", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01244", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(name, id, level, amount)\n tasks(date, level, type, code)\nTask: Find salary from categories where type appears in tasks entries with matching type.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "tasks", "outer_alias": "catg", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01245", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(date, salary, type, status)\n regions(level, name, id, value)\nTask: Retrieve salary from schedules with salary above the AVG(value) of regions rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE salary > (\n SELECT AVG(value) FROM regions AS rgn\n WHERE rgn.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01246", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(amount, date, type, salary)\n employees(status, level, date, amount)\nTask: Select code from items where id exists in employees for the same level.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01247", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(salary, value, type, level)\n transactions(name, amount, salary, value)\nTask: Find amount from regions where a matching record exists in transactions with the same code.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "transactions", "outer_alias": "rgn", "inner_alias": "txn", "proj_col": "amount", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01248", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(value, level, status, id)\n categories(value, type, date, amount)\nTask: Retrieve id from requests whose level is found in categories rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "categories", "outer_alias": "ordr", "inner_alias": "catg", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01249", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(code, level, name, date)\n requests(code, name, date, id)\nTask: Select value from products where type exists in requests for the same id.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "requests", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01250", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(type, salary, value, id)\n projects(code, name, salary, value)\nTask: Find name from employees where value exceeds the average salary from projects for the same status.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE value > (\n SELECT AVG(salary) FROM projects AS prj\n WHERE prj.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "projects", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01251", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(name, value, level, amount)\n employees(name, status, type, salary)\nTask: Retrieve code from items whose status is found in employees rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01252", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(type, salary, id, amount)\n orders(id, amount, date, status)\nTask: Retrieve salary from staff that have at least one corresponding entry in orders sharing the same id.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "orders", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01253", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(amount, type, date, status)\n managers(salary, value, id, type)\nTask: Retrieve code from employees whose type is found in managers rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01254", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(status, date, code, name)\n requests(id, value, salary, amount)\nTask: Find id from customers where a matching record exists in requests with the same code.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "requests", "outer_alias": "cust", "inner_alias": "ordr", "proj_col": "id", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01255", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(date, status, level, type)\n items(id, amount, code, value)\nTask: Find code from tasks where amount exceeds the minimum value from items for the same type.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE amount > (\n SELECT MIN(value) FROM items AS lne\n WHERE lne.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "items", "outer_alias": "tsk", "inner_alias": "lne", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01256", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(level, date, salary, status)\n orders(status, value, amount, type)\nTask: Retrieve id from accounts whose code is found in orders rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE code IN (\n SELECT code FROM orders AS ord\n WHERE ord.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "orders", "outer_alias": "acct", "inner_alias": "ord", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01257", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(code, value, status, type)\n sales(status, name, amount, date)\nTask: Retrieve code from orders that have at least one corresponding entry in sales sharing the same level.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "sales", "outer_alias": "ord", "inner_alias": "sale", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01258", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(code, name, date, level)\n shipments(name, date, salary, value)\nTask: Retrieve amount from accounts that have at least one corresponding entry in shipments sharing the same id.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "shipments", "outer_alias": "acct", "inner_alias": "shp", "proj_col": "amount", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01259", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(status, id, salary, code)\n branches(name, amount, value, date)\nTask: Select code from employees where id exists in branches for the same type.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE id IN (\n SELECT id FROM branches AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "branches", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01260", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(name, date, level, status)\n branches(status, salary, code, amount)\nTask: Retrieve salary from categories whose status is found in branches rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01261", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(amount, date, id, status)\n requests(code, amount, name, salary)\nTask: Find salary from projects where value exceeds the average amount from requests for the same level.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE value > (\n SELECT AVG(amount) FROM requests AS ordr\n WHERE ordr.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01262", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(id, date, code, amount)\n transactions(id, type, status, name)\nTask: Find value from items where level appears in transactions entries with matching code.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "transactions", "outer_alias": "lne", "inner_alias": "txn", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01263", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(status, id, code, type)\n staff(salary, level, id, type)\nTask: Retrieve code from regions that have at least one corresponding entry in staff sharing the same level.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "staff", "outer_alias": "rgn", "inner_alias": "empl", "proj_col": "code", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01264", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(salary, type, date, status)\n shipments(date, id, salary, type)\nTask: Retrieve code from employees that have at least one corresponding entry in shipments sharing the same code.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "shipments", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01265", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(type, value, salary, date)\n products(value, type, salary, amount)\nTask: Find value from requests where salary exceeds the average amount from products for the same id.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE salary > (\n SELECT AVG(amount) FROM products AS prod\n WHERE prod.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "products", "outer_alias": "ordr", "inner_alias": "prod", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01266", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(id, name, level, code)\n departments(code, status, id, level)\nTask: Find code from transactions where a matching record exists in departments with the same status.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "departments", "outer_alias": "txn", "inner_alias": "dept", "proj_col": "code", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01267", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(value, level, type, status)\n tasks(name, id, amount, date)\nTask: Find name from items where type appears in tasks entries with matching id.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "tasks", "outer_alias": "lne", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01268", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(salary, type, id, code)\n invoices(salary, value, id, amount)\nTask: Find value from branches where a matching record exists in invoices with the same type.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "invoices", "outer_alias": "brc", "inner_alias": "inv", "proj_col": "value", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01269", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(status, date, amount, code)\n customers(date, value, status, salary)\nTask: Retrieve name from shipments with salary above the COUNT(value) of customers rows sharing the same level.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE salary > (\n SELECT COUNT(value) FROM customers AS cust\n WHERE cust.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01270", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(name, status, code, id)\n categories(id, name, amount, value)\nTask: Retrieve name from sales with salary above the AVG(value) of categories rows sharing the same type.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE salary > (\n SELECT AVG(value) FROM categories AS catg\n WHERE catg.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "categories", "outer_alias": "sale", "inner_alias": "catg", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01271", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(value, amount, type, id)\n tasks(id, level, status, amount)\nTask: Retrieve salary from staff with salary above the MAX(salary) of tasks rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE salary > (\n SELECT MAX(salary) FROM tasks AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "tasks", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01272", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(date, code, level, salary)\n requests(level, name, code, date)\nTask: Find code from categories where a matching record exists in requests with the same status.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "requests", "outer_alias": "catg", "inner_alias": "ordr", "proj_col": "code", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01273", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(date, amount, name, id)\n products(value, code, amount, status)\nTask: Find salary from accounts where a matching record exists in products with the same id.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "salary", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01274", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(id, amount, level, salary)\n managers(status, name, salary, level)\nTask: Retrieve amount from branches whose id is found in managers rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01275", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(date, level, code, type)\n items(status, salary, name, amount)\nTask: Select code from schedules where level exists in items for the same code.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM items AS lne\n WHERE lne.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01276", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(amount, status, value, date)\n transactions(level, amount, code, date)\nTask: Retrieve id from products that have at least one corresponding entry in transactions sharing the same status.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01277", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(amount, name, salary, id)\n sales(code, amount, status, value)\nTask: Find value from categories where salary exceeds the count of salary from sales for the same status.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE salary > (\n SELECT COUNT(salary) FROM sales AS sale\n WHERE sale.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "sales", "outer_alias": "catg", "inner_alias": "sale", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01278", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(status, type, value, level)\n schedules(id, level, amount, type)\nTask: Find salary from regions where a matching record exists in schedules with the same code.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "schedules", "outer_alias": "rgn", "inner_alias": "schd", "proj_col": "salary", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01279", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(name, amount, type, id)\n customers(salary, type, id, amount)\nTask: Retrieve amount from transactions with amount above the AVG(salary) of customers rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE amount > (\n SELECT AVG(salary) FROM customers AS cust\n WHERE cust.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "customers", "outer_alias": "txn", "inner_alias": "cust", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01280", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(type, salary, amount, level)\n managers(amount, code, date, type)\nTask: Retrieve code from requests with value above the SUM(salary) of managers rows sharing the same id.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE value > (\n SELECT SUM(salary) FROM managers AS mgr\n WHERE mgr.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "managers", "outer_alias": "ordr", "inner_alias": "mgr", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01281", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(amount, value, name, status)\n staff(level, salary, code, date)\nTask: Retrieve id from managers with amount above the SUM(value) of staff rows sharing the same status.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE amount > (\n SELECT SUM(value) FROM staff AS empl\n WHERE empl.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "staff", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01282", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(amount, code, salary, id)\n schedules(id, salary, date, value)\nTask: Retrieve id from items whose code is found in schedules rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE code IN (\n SELECT code FROM schedules AS schd\n WHERE schd.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "schedules", "outer_alias": "lne", "inner_alias": "schd", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01283", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(value, code, type, name)\n items(amount, type, name, level)\nTask: Retrieve amount from sales that have at least one corresponding entry in items sharing the same type.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "items", "outer_alias": "sale", "inner_alias": "lne", "proj_col": "amount", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01284", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(date, amount, type, id)\n requests(date, type, code, amount)\nTask: Find name from categories where a matching record exists in requests with the same status.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "requests", "outer_alias": "catg", "inner_alias": "ordr", "proj_col": "name", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01285", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(name, type, value, id)\n orders(date, name, id, salary)\nTask: Find value from projects where level appears in orders entries with matching id.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01286", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(level, salary, value, name)\n schedules(status, code, date, amount)\nTask: Find id from products where code appears in schedules entries with matching id.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE code IN (\n SELECT code FROM schedules AS schd\n WHERE schd.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "schedules", "outer_alias": "prod", "inner_alias": "schd", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01287", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(amount, value, date, level)\n requests(date, amount, type, code)\nTask: Retrieve value from tasks with amount above the AVG(salary) of requests rows sharing the same level.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE amount > (\n SELECT AVG(salary) FROM requests AS ordr\n WHERE ordr.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01288", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(level, status, amount, salary)\n tasks(status, amount, id, date)\nTask: Retrieve value from shipments with value above the AVG(salary) of tasks rows sharing the same id.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE value > (\n SELECT AVG(salary) FROM tasks AS tsk\n WHERE tsk.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01289", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(id, amount, date, value)\n branches(value, status, amount, type)\nTask: Find amount from projects where amount exceeds the count of amount from branches for the same level.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE amount > (\n SELECT COUNT(amount) FROM branches AS brc\n WHERE brc.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "branches", "outer_alias": "prj", "inner_alias": "brc", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01290", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(value, code, amount, type)\n departments(date, salary, amount, name)\nTask: Retrieve id from shipments that have at least one corresponding entry in departments sharing the same status.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "departments", "outer_alias": "shp", "inner_alias": "dept", "proj_col": "id", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01291", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(status, salary, value, date)\n regions(amount, id, date, salary)\nTask: Select amount from schedules where type exists in regions for the same code.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE type IN (\n SELECT type FROM regions AS rgn\n WHERE rgn.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01292", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(name, code, level, type)\n products(type, value, status, amount)\nTask: Select name from branches where code exists in products for the same id.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE code IN (\n SELECT code FROM products AS prod\n WHERE prod.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "products", "outer_alias": "brc", "inner_alias": "prod", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01293", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(name, code, amount, salary)\n transactions(code, id, date, value)\nTask: Retrieve amount from staff that have at least one corresponding entry in transactions sharing the same level.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "transactions", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "amount", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01294", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(level, value, date, salary)\n regions(name, id, type, code)\nTask: Select id from products where id exists in regions for the same status.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01295", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(name, date, code, value)\n branches(name, amount, type, date)\nTask: Find amount from invoices where a matching record exists in branches with the same code.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "branches", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01296", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(status, id, value, code)\n customers(level, code, id, type)\nTask: Find amount from items where a matching record exists in customers with the same id.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "customers", "outer_alias": "lne", "inner_alias": "cust", "proj_col": "amount", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01297", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(value, salary, id, code)\n schedules(date, amount, id, type)\nTask: Find name from departments where status appears in schedules entries with matching code.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE status IN (\n SELECT status FROM schedules AS schd\n WHERE schd.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "schedules", "outer_alias": "dept", "inner_alias": "schd", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01298", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(name, amount, status, code)\n categories(name, status, date, value)\nTask: Find amount from staff where a matching record exists in categories with the same id.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "categories", "outer_alias": "empl", "inner_alias": "catg", "proj_col": "amount", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01299", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(level, status, value, amount)\n products(level, id, salary, amount)\nTask: Retrieve salary from shipments with value above the COUNT(salary) of products rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE value > (\n SELECT COUNT(salary) FROM products AS prod\n WHERE prod.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01300", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(name, type, amount, level)\n sales(date, value, salary, name)\nTask: Find code from transactions where a matching record exists in sales with the same level.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "sales", "outer_alias": "txn", "inner_alias": "sale", "proj_col": "code", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01301", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(type, code, salary, amount)\n shipments(status, salary, name, value)\nTask: Retrieve name from departments that have at least one corresponding entry in shipments sharing the same type.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "shipments", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01302", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(level, amount, status, name)\n departments(value, type, status, name)\nTask: Find name from transactions where amount exceeds the total amount from departments for the same status.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE amount > (\n SELECT SUM(amount) FROM departments AS dept\n WHERE dept.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "departments", "outer_alias": "txn", "inner_alias": "dept", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01303", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(amount, date, id, level)\n transactions(value, id, status, code)\nTask: Select code from sales where code exists in transactions for the same status.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "transactions", "outer_alias": "sale", "inner_alias": "txn", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01304", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(code, value, level, date)\n departments(salary, id, date, value)\nTask: Retrieve id from categories that have at least one corresponding entry in departments sharing the same type.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "departments", "outer_alias": "catg", "inner_alias": "dept", "proj_col": "id", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01305", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(amount, name, value, type)\n invoices(amount, id, type, code)\nTask: Retrieve id from departments whose level is found in invoices rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE level IN (\n SELECT level FROM invoices AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "invoices", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01306", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(date, code, status, value)\n employees(date, amount, name, id)\nTask: Find value from staff where status appears in employees entries with matching type.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01307", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(amount, id, salary, date)\n staff(id, value, name, type)\nTask: Retrieve salary from orders whose level is found in staff rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "staff", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01308", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(salary, value, code, level)\n shipments(value, date, id, status)\nTask: Retrieve code from departments with amount above the MIN(salary) of shipments rows sharing the same code.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE amount > (\n SELECT MIN(salary) FROM shipments AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "shipments", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01309", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(status, level, name, amount)\n orders(value, amount, code, type)\nTask: Select name from products where type exists in orders for the same id.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE type IN (\n SELECT type FROM orders AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "orders", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01310", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(value, salary, id, code)\n orders(code, type, status, date)\nTask: Retrieve value from tasks that have at least one corresponding entry in orders sharing the same level.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "orders", "outer_alias": "tsk", "inner_alias": "ord", "proj_col": "value", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01311", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(status, amount, value, id)\n invoices(status, amount, type, date)\nTask: Find value from departments where a matching record exists in invoices with the same id.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "invoices", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01312", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(value, id, type, amount)\n employees(salary, id, status, amount)\nTask: Retrieve amount from staff with amount above the SUM(value) of employees rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE amount > (\n SELECT SUM(value) FROM employees AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01313", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(date, status, value, salary)\n sales(id, level, type, name)\nTask: Find salary from orders where value exceeds the maximum salary from sales for the same status.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE value > (\n SELECT MAX(salary) FROM sales AS sale\n WHERE sale.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "sales", "outer_alias": "ord", "inner_alias": "sale", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01314", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(type, status, level, amount)\n requests(type, amount, date, name)\nTask: Retrieve amount from products that have at least one corresponding entry in requests sharing the same id.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "requests", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01315", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(amount, status, salary, value)\n transactions(id, code, type, salary)\nTask: Retrieve code from sales with salary above the SUM(value) of transactions rows sharing the same status.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE salary > (\n SELECT SUM(value) FROM transactions AS txn\n WHERE txn.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "transactions", "outer_alias": "sale", "inner_alias": "txn", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01316", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(type, status, value, amount)\n accounts(status, level, date, salary)\nTask: Retrieve salary from employees with salary above the COUNT(salary) of accounts rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE salary > (\n SELECT COUNT(salary) FROM accounts AS acct\n WHERE acct.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "accounts", "outer_alias": "emp", "inner_alias": "acct", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01317", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(level, salary, date, amount)\n regions(level, date, type, value)\nTask: Retrieve code from customers with amount above the AVG(value) of regions rows sharing the same status.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE amount > (\n SELECT AVG(value) FROM regions AS rgn\n WHERE rgn.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01318", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(status, amount, code, salary)\n departments(type, amount, code, status)\nTask: Select code from requests where level exists in departments for the same code.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "departments", "outer_alias": "ordr", "inner_alias": "dept", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01319", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(level, id, salary, value)\n sales(status, code, value, type)\nTask: Retrieve code from products with amount above the MIN(salary) of sales rows sharing the same status.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE amount > (\n SELECT MIN(salary) FROM sales AS sale\n WHERE sale.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "sales", "outer_alias": "prod", "inner_alias": "sale", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01320", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(code, id, type, date)\n accounts(date, code, type, amount)\nTask: Retrieve amount from requests with salary above the SUM(amount) of accounts rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE salary > (\n SELECT SUM(amount) FROM accounts AS acct\n WHERE acct.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "accounts", "outer_alias": "ordr", "inner_alias": "acct", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01321", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(type, id, salary, status)\n projects(id, type, value, code)\nTask: Find amount from regions where a matching record exists in projects with the same status.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "projects", "outer_alias": "rgn", "inner_alias": "prj", "proj_col": "amount", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01322", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(salary, amount, code, id)\n branches(id, level, name, date)\nTask: Retrieve id from categories with amount above the COUNT(salary) of branches rows sharing the same level.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE amount > (\n SELECT COUNT(salary) FROM branches AS brc\n WHERE brc.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01323", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(date, name, level, salary)\n managers(value, type, name, id)\nTask: Retrieve value from shipments that have at least one corresponding entry in managers sharing the same id.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "managers", "outer_alias": "shp", "inner_alias": "mgr", "proj_col": "value", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01324", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(code, status, type, date)\n requests(name, type, value, date)\nTask: Select value from projects where type exists in requests for the same id.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01325", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(amount, date, value, code)\n schedules(date, status, code, salary)\nTask: Retrieve name from accounts with value above the MAX(amount) of schedules rows sharing the same id.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE value > (\n SELECT MAX(amount) FROM schedules AS schd\n WHERE schd.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "schedules", "outer_alias": "acct", "inner_alias": "schd", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01326", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(value, amount, id, type)\n categories(salary, value, level, type)\nTask: Select salary from branches where id exists in categories for the same id.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "categories", "outer_alias": "brc", "inner_alias": "catg", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01327", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(amount, type, salary, level)\n customers(status, code, value, name)\nTask: Retrieve id from shipments that have at least one corresponding entry in customers sharing the same status.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "id", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01328", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(name, code, value, level)\n categories(name, type, id, salary)\nTask: Retrieve amount from items with salary above the MAX(value) of categories rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE salary > (\n SELECT MAX(value) FROM categories AS catg\n WHERE catg.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01329", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(id, date, status, value)\n projects(value, name, salary, id)\nTask: Find value from customers where level appears in projects entries with matching status.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "projects", "outer_alias": "cust", "inner_alias": "prj", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01330", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(name, date, amount, value)\n projects(status, type, name, date)\nTask: Find name from customers where a matching record exists in projects with the same status.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "projects", "outer_alias": "cust", "inner_alias": "prj", "proj_col": "name", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01331", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(name, value, id, amount)\n invoices(id, name, date, type)\nTask: Select amount from sales where id exists in invoices for the same type.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE id IN (\n SELECT id FROM invoices AS inv\n WHERE inv.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "invoices", "outer_alias": "sale", "inner_alias": "inv", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01332", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(status, type, amount, name)\n projects(level, status, name, salary)\nTask: Select value from transactions where code exists in projects for the same type.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01333", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(date, level, value, amount)\n invoices(value, date, status, id)\nTask: Retrieve salary from orders that have at least one corresponding entry in invoices sharing the same level.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "invoices", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "salary", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01334", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(date, name, salary, type)\n tasks(level, amount, salary, id)\nTask: Find code from employees where salary exceeds the count of value from tasks for the same status.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE salary > (\n SELECT COUNT(value) FROM tasks AS tsk\n WHERE tsk.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "tasks", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01335", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(amount, date, id, level)\n sales(amount, level, id, date)\nTask: Retrieve value from invoices that have at least one corresponding entry in sales sharing the same type.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "sales", "outer_alias": "inv", "inner_alias": "sale", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01336", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(code, level, salary, date)\n orders(id, amount, date, salary)\nTask: Select value from branches where code exists in orders for the same level.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE code IN (\n SELECT code FROM orders AS ord\n WHERE ord.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "orders", "outer_alias": "brc", "inner_alias": "ord", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01337", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(code, id, salary, amount)\n sales(level, salary, status, value)\nTask: Select amount from customers where type exists in sales for the same level.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE type IN (\n SELECT type FROM sales AS sale\n WHERE sale.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "sales", "outer_alias": "cust", "inner_alias": "sale", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01338", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(id, name, type, date)\n transactions(value, level, type, code)\nTask: Retrieve amount from requests that have at least one corresponding entry in transactions sharing the same code.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "amount", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01339", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(salary, value, status, level)\n transactions(id, name, salary, code)\nTask: Retrieve name from customers whose status is found in transactions rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE status IN (\n SELECT status FROM transactions AS txn\n WHERE txn.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "transactions", "outer_alias": "cust", "inner_alias": "txn", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01340", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(date, salary, id, type)\n accounts(code, type, value, date)\nTask: Find value from transactions where salary exceeds the maximum amount from accounts for the same level.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE salary > (\n SELECT MAX(amount) FROM accounts AS acct\n WHERE acct.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "accounts", "outer_alias": "txn", "inner_alias": "acct", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01341", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(type, level, id, status)\n orders(name, status, type, date)\nTask: Retrieve amount from invoices with salary above the COUNT(salary) of orders rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE salary > (\n SELECT COUNT(salary) FROM orders AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "orders", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01342", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(name, code, id, type)\n customers(date, value, status, amount)\nTask: Retrieve id from schedules with value above the MIN(salary) of customers rows sharing the same id.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE value > (\n SELECT MIN(salary) FROM customers AS cust\n WHERE cust.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "customers", "outer_alias": "schd", "inner_alias": "cust", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01343", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(status, level, id, code)\n products(code, status, date, name)\nTask: Retrieve value from branches that have at least one corresponding entry in products sharing the same status.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "products", "outer_alias": "brc", "inner_alias": "prod", "proj_col": "value", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01344", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(status, value, salary, level)\n schedules(code, salary, amount, value)\nTask: Retrieve amount from transactions that have at least one corresponding entry in schedules sharing the same level.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "schedules", "outer_alias": "txn", "inner_alias": "schd", "proj_col": "amount", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01345", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(date, type, id, status)\n customers(level, salary, type, name)\nTask: Retrieve amount from managers that have at least one corresponding entry in customers sharing the same level.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "customers", "outer_alias": "mgr", "inner_alias": "cust", "proj_col": "amount", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01346", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(salary, level, amount, name)\n branches(code, name, id, salary)\nTask: Find name from items where a matching record exists in branches with the same status.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "name", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01347", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(value, amount, salary, date)\n products(date, status, name, id)\nTask: Find value from items where status appears in products entries with matching status.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "products", "outer_alias": "lne", "inner_alias": "prod", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01348", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(amount, code, salary, id)\n regions(value, code, salary, status)\nTask: Retrieve amount from requests whose status is found in regions rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM regions AS rgn\n WHERE rgn.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "regions", "outer_alias": "ordr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01349", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(id, status, salary, date)\n categories(id, level, type, code)\nTask: Find code from items where code appears in categories entries with matching status.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE code IN (\n SELECT code FROM categories AS catg\n WHERE catg.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01350", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(amount, date, status, type)\n managers(date, type, salary, name)\nTask: Retrieve value from accounts with salary above the COUNT(value) of managers rows sharing the same status.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE salary > (\n SELECT COUNT(value) FROM managers AS mgr\n WHERE mgr.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "managers", "outer_alias": "acct", "inner_alias": "mgr", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01351", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(level, value, name, code)\n employees(salary, code, level, amount)\nTask: Retrieve code from managers whose type is found in employees rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "employees", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01352", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(code, name, level, type)\n branches(value, salary, name, type)\nTask: Find name from staff where value exceeds the average value from branches for the same code.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE value > (\n SELECT AVG(value) FROM branches AS brc\n WHERE brc.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "branches", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01353", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(value, salary, code, date)\n regions(code, level, name, type)\nTask: Retrieve value from schedules whose code is found in regions rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01354", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(level, status, date, id)\n shipments(status, name, code, type)\nTask: Retrieve amount from employees that have at least one corresponding entry in shipments sharing the same level.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "shipments", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "amount", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01355", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(amount, date, status, name)\n categories(amount, id, name, level)\nTask: Find amount from staff where salary exceeds the maximum amount from categories for the same id.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE salary > (\n SELECT MAX(amount) FROM categories AS catg\n WHERE catg.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "categories", "outer_alias": "empl", "inner_alias": "catg", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01356", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(level, salary, value, type)\n items(salary, name, status, date)\nTask: Find amount from projects where type appears in items entries with matching code.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "items", "outer_alias": "prj", "inner_alias": "lne", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01357", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(code, level, status, amount)\n staff(value, level, date, salary)\nTask: Find value from requests where value exceeds the count of salary from staff for the same code.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE value > (\n SELECT COUNT(salary) FROM staff AS empl\n WHERE empl.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "staff", "outer_alias": "ordr", "inner_alias": "empl", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01358", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(salary, code, status, value)\n transactions(code, status, amount, salary)\nTask: Retrieve id from accounts that have at least one corresponding entry in transactions sharing the same status.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "transactions", "outer_alias": "acct", "inner_alias": "txn", "proj_col": "id", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01359", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(value, type, name, date)\n branches(status, level, date, amount)\nTask: Find amount from orders where salary exceeds the maximum amount from branches for the same level.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE salary > (\n SELECT MAX(amount) FROM branches AS brc\n WHERE brc.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "branches", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01360", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(name, type, date, code)\n managers(amount, type, salary, name)\nTask: Retrieve salary from sales that have at least one corresponding entry in managers sharing the same id.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "salary", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01361", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(name, type, id, level)\n projects(amount, salary, code, name)\nTask: Retrieve salary from branches whose id is found in projects rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "projects", "outer_alias": "brc", "inner_alias": "prj", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01362", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(value, type, id, code)\n departments(salary, value, id, date)\nTask: Find code from tasks where value exceeds the maximum amount from departments for the same level.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE value > (\n SELECT MAX(amount) FROM departments AS dept\n WHERE dept.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "departments", "outer_alias": "tsk", "inner_alias": "dept", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01363", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(code, id, status, date)\n employees(level, type, value, salary)\nTask: Retrieve value from staff with salary above the MIN(amount) of employees rows sharing the same status.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE salary > (\n SELECT MIN(amount) FROM employees AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01364", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(code, level, status, amount)\n items(type, amount, salary, code)\nTask: Find salary from managers where amount exceeds the average salary from items for the same code.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE amount > (\n SELECT AVG(salary) FROM items AS lne\n WHERE lne.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "items", "outer_alias": "mgr", "inner_alias": "lne", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01365", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(status, amount, level, date)\n managers(type, value, date, amount)\nTask: Retrieve id from products whose status is found in managers rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "managers", "outer_alias": "prod", "inner_alias": "mgr", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01366", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(status, level, name, amount)\n items(status, amount, type, value)\nTask: Retrieve amount from requests with amount above the MAX(salary) of items rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE amount > (\n SELECT MAX(salary) FROM items AS lne\n WHERE lne.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01367", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(value, type, date, salary)\n branches(code, level, status, amount)\nTask: Find code from orders where a matching record exists in branches with the same code.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "branches", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01368", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(salary, level, date, status)\n invoices(date, name, level, code)\nTask: Find id from items where amount exceeds the total amount from invoices for the same id.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE amount > (\n SELECT SUM(amount) FROM invoices AS inv\n WHERE inv.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "invoices", "outer_alias": "lne", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01369", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(date, name, value, code)\n accounts(level, salary, amount, date)\nTask: Find name from orders where a matching record exists in accounts with the same code.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "accounts", "outer_alias": "ord", "inner_alias": "acct", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01370", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(date, id, amount, type)\n customers(status, id, type, code)\nTask: Find id from sales where a matching record exists in customers with the same status.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "customers", "outer_alias": "sale", "inner_alias": "cust", "proj_col": "id", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01371", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(name, amount, status, salary)\n requests(status, type, id, name)\nTask: Retrieve value from projects that have at least one corresponding entry in requests sharing the same id.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "value", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01372", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(level, code, status, date)\n schedules(type, value, status, level)\nTask: Retrieve id from transactions that have at least one corresponding entry in schedules sharing the same status.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "schedules", "outer_alias": "txn", "inner_alias": "schd", "proj_col": "id", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01373", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(type, date, amount, value)\n accounts(salary, type, level, status)\nTask: Select name from customers where type exists in accounts for the same type.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "accounts", "outer_alias": "cust", "inner_alias": "acct", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01374", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(salary, amount, date, value)\n managers(date, name, value, status)\nTask: Find name from employees where amount exceeds the total salary from managers for the same status.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE amount > (\n SELECT SUM(salary) FROM managers AS mgr\n WHERE mgr.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01375", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(name, date, value, level)\n sales(name, id, salary, code)\nTask: Find name from invoices where id appears in sales entries with matching level.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM sales AS sale\n WHERE sale.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "sales", "outer_alias": "inv", "inner_alias": "sale", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01376", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(status, code, date, value)\n employees(salary, value, date, type)\nTask: Retrieve id from managers with value above the SUM(salary) of employees rows sharing the same level.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE value > (\n SELECT SUM(salary) FROM employees AS emp\n WHERE emp.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "employees", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01377", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(id, code, amount, level)\n employees(value, name, id, date)\nTask: Retrieve id from orders with amount above the COUNT(amount) of employees rows sharing the same type.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE amount > (\n SELECT COUNT(amount) FROM employees AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01378", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(value, type, level, amount)\n employees(code, type, salary, id)\nTask: Retrieve name from shipments whose status is found in employees rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "employees", "outer_alias": "shp", "inner_alias": "emp", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01379", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(level, id, date, status)\n employees(code, id, name, amount)\nTask: Retrieve name from requests whose code is found in employees rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "employees", "outer_alias": "ordr", "inner_alias": "emp", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01380", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(id, status, code, salary)\n invoices(name, date, id, code)\nTask: Select value from projects where code exists in invoices for the same level.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE code IN (\n SELECT code FROM invoices AS inv\n WHERE inv.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "invoices", "outer_alias": "prj", "inner_alias": "inv", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01381", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(salary, amount, name, date)\n tasks(type, salary, amount, value)\nTask: Retrieve name from schedules with amount above the COUNT(amount) of tasks rows sharing the same level.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE amount > (\n SELECT COUNT(amount) FROM tasks AS tsk\n WHERE tsk.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "tasks", "outer_alias": "schd", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01382", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(type, value, id, status)\n sales(code, level, salary, status)\nTask: Find id from projects where amount exceeds the total value from sales for the same type.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE amount > (\n SELECT SUM(value) FROM sales AS sale\n WHERE sale.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "sales", "outer_alias": "prj", "inner_alias": "sale", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01383", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(name, amount, id, type)\n shipments(id, salary, date, status)\nTask: Select id from products where id exists in shipments for the same type.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE id IN (\n SELECT id FROM shipments AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "shipments", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01384", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(type, status, level, amount)\n requests(code, amount, type, salary)\nTask: Find value from staff where a matching record exists in requests with the same code.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "requests", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01385", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(date, salary, type, name)\n sales(name, value, level, status)\nTask: Retrieve id from customers that have at least one corresponding entry in sales sharing the same status.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "sales", "outer_alias": "cust", "inner_alias": "sale", "proj_col": "id", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01386", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(id, type, date, code)\n categories(type, level, amount, date)\nTask: Find amount from departments where salary exceeds the average amount from categories for the same type.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE salary > (\n SELECT AVG(amount) FROM categories AS catg\n WHERE catg.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "categories", "outer_alias": "dept", "inner_alias": "catg", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01387", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(name, status, code, level)\n projects(value, salary, status, amount)\nTask: Retrieve code from staff that have at least one corresponding entry in projects sharing the same id.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "projects", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01388", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(amount, type, level, id)\n managers(code, status, amount, id)\nTask: Retrieve id from schedules whose type is found in managers rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01389", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(value, amount, code, status)\n departments(date, amount, level, type)\nTask: Retrieve salary from accounts whose code is found in departments rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "departments", "outer_alias": "acct", "inner_alias": "dept", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01390", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(code, value, id, amount)\n items(name, amount, id, date)\nTask: Retrieve name from categories with value above the MAX(salary) of items rows sharing the same level.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE value > (\n SELECT MAX(salary) FROM items AS lne\n WHERE lne.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01391", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(value, id, name, date)\n branches(id, level, date, salary)\nTask: Select name from items where status exists in branches for the same status.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01392", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(value, salary, code, level)\n categories(date, salary, status, level)\nTask: Find value from requests where a matching record exists in categories with the same level.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "categories", "outer_alias": "ordr", "inner_alias": "catg", "proj_col": "value", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01393", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(id, value, amount, date)\n invoices(code, date, type, id)\nTask: Find code from requests where amount exceeds the average salary from invoices for the same type.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE amount > (\n SELECT AVG(salary) FROM invoices AS inv\n WHERE inv.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "invoices", "outer_alias": "ordr", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01394", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(status, id, type, date)\n shipments(level, date, status, name)\nTask: Find id from transactions where a matching record exists in shipments with the same status.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "shipments", "outer_alias": "txn", "inner_alias": "shp", "proj_col": "id", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01395", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(type, amount, code, level)\n transactions(name, date, salary, id)\nTask: Retrieve value from customers that have at least one corresponding entry in transactions sharing the same id.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "transactions", "outer_alias": "cust", "inner_alias": "txn", "proj_col": "value", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01396", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(amount, name, value, type)\n managers(status, id, amount, code)\nTask: Find code from sales where amount exceeds the maximum salary from managers for the same id.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE amount > (\n SELECT MAX(salary) FROM managers AS mgr\n WHERE mgr.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01397", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(type, amount, salary, value)\n invoices(salary, value, date, name)\nTask: Select code from managers where type exists in invoices for the same code.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "invoices", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01398", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(date, value, amount, name)\n projects(salary, code, value, level)\nTask: Retrieve code from tasks with amount above the MIN(amount) of projects rows sharing the same code.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE amount > (\n SELECT MIN(amount) FROM projects AS prj\n WHERE prj.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "projects", "outer_alias": "tsk", "inner_alias": "prj", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01399", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(salary, status, code, value)\n sales(salary, level, value, amount)\nTask: Retrieve amount from categories with amount above the COUNT(salary) of sales rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE amount > (\n SELECT COUNT(salary) FROM sales AS sale\n WHERE sale.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "sales", "outer_alias": "catg", "inner_alias": "sale", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01400", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(level, amount, value, name)\n accounts(name, status, type, level)\nTask: Find name from requests where a matching record exists in accounts with the same id.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "accounts", "outer_alias": "ordr", "inner_alias": "acct", "proj_col": "name", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01401", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(amount, name, level, id)\n departments(amount, salary, name, status)\nTask: Find name from transactions where salary exceeds the total salary from departments for the same id.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE salary > (\n SELECT SUM(salary) FROM departments AS dept\n WHERE dept.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "departments", "outer_alias": "txn", "inner_alias": "dept", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01402", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(id, type, amount, level)\n accounts(value, salary, id, date)\nTask: Retrieve value from sales with value above the SUM(salary) of accounts rows sharing the same code.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE value > (\n SELECT SUM(salary) FROM accounts AS acct\n WHERE acct.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "accounts", "outer_alias": "sale", "inner_alias": "acct", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01403", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(amount, type, level, id)\n regions(date, name, id, level)\nTask: Select amount from accounts where type exists in regions for the same type.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE type IN (\n SELECT type FROM regions AS rgn\n WHERE rgn.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "regions", "outer_alias": "acct", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01404", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(amount, level, name, salary)\n schedules(type, level, date, value)\nTask: Retrieve id from branches with salary above the COUNT(amount) of schedules rows sharing the same code.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE salary > (\n SELECT COUNT(amount) FROM schedules AS schd\n WHERE schd.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "schedules", "outer_alias": "brc", "inner_alias": "schd", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01405", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(name, value, status, id)\n transactions(name, type, amount, value)\nTask: Select salary from requests where status exists in transactions for the same type.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM transactions AS txn\n WHERE txn.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01406", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(status, id, name, date)\n regions(code, date, name, level)\nTask: Retrieve code from staff whose code is found in regions rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "regions", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01407", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(code, level, amount, id)\n projects(code, name, level, salary)\nTask: Find salary from departments where a matching record exists in projects with the same code.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "projects", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01408", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(value, amount, salary, id)\n items(value, id, salary, date)\nTask: Retrieve id from schedules that have at least one corresponding entry in items sharing the same level.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "id", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01409", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(date, status, name, level)\n invoices(amount, id, level, status)\nTask: Find name from managers where value exceeds the minimum value from invoices for the same level.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE value > (\n SELECT MIN(value) FROM invoices AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "invoices", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01410", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(code, type, level, value)\n employees(code, date, value, amount)\nTask: Retrieve value from invoices that have at least one corresponding entry in employees sharing the same code.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "employees", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01411", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(id, value, status, name)\n staff(salary, level, status, value)\nTask: Find id from projects where a matching record exists in staff with the same id.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "staff", "outer_alias": "prj", "inner_alias": "empl", "proj_col": "id", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01412", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(status, name, level, value)\n sales(level, date, value, amount)\nTask: Select code from invoices where type exists in sales for the same level.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM sales AS sale\n WHERE sale.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "sales", "outer_alias": "inv", "inner_alias": "sale", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01413", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(type, name, date, amount)\n sales(level, value, type, amount)\nTask: Retrieve value from managers with amount above the COUNT(amount) of sales rows sharing the same type.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE amount > (\n SELECT COUNT(amount) FROM sales AS sale\n WHERE sale.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "sales", "outer_alias": "mgr", "inner_alias": "sale", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01414", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(id, status, level, date)\n invoices(status, salary, value, name)\nTask: Find id from requests where amount exceeds the maximum salary from invoices for the same type.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE amount > (\n SELECT MAX(salary) FROM invoices AS inv\n WHERE inv.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "invoices", "outer_alias": "ordr", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01415", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(status, type, value, code)\n employees(id, amount, status, date)\nTask: Find salary from schedules where id appears in employees entries with matching id.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01416", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(salary, code, id, amount)\n sales(amount, value, type, code)\nTask: Find salary from shipments where type appears in sales entries with matching id.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM sales AS sale\n WHERE sale.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "sales", "outer_alias": "shp", "inner_alias": "sale", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01417", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(id, code, name, type)\n requests(status, salary, date, name)\nTask: Select id from tasks where code exists in requests for the same level.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01418", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(salary, value, amount, status)\n shipments(code, level, value, amount)\nTask: Find id from projects where amount exceeds the minimum salary from shipments for the same status.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE amount > (\n SELECT MIN(salary) FROM shipments AS shp\n WHERE shp.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "shipments", "outer_alias": "prj", "inner_alias": "shp", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01419", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(name, salary, code, amount)\n items(status, name, salary, value)\nTask: Find value from accounts where status appears in items entries with matching status.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "items", "outer_alias": "acct", "inner_alias": "lne", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01420", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(status, value, code, salary)\n accounts(level, value, type, salary)\nTask: Retrieve name from employees that have at least one corresponding entry in accounts sharing the same code.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "accounts", "outer_alias": "emp", "inner_alias": "acct", "proj_col": "name", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01421", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(id, level, amount, status)\n tasks(id, salary, name, level)\nTask: Find value from invoices where amount exceeds the count of amount from tasks for the same type.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE amount > (\n SELECT COUNT(amount) FROM tasks AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01422", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(level, status, amount, date)\n orders(id, amount, code, name)\nTask: Retrieve salary from accounts with amount above the SUM(amount) of orders rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE amount > (\n SELECT SUM(amount) FROM orders AS ord\n WHERE ord.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "orders", "outer_alias": "acct", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01423", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(name, code, type, date)\n tasks(type, amount, value, level)\nTask: Retrieve salary from products with salary above the MAX(amount) of tasks rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM tasks AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "tasks", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01424", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(salary, name, date, level)\n departments(status, amount, value, name)\nTask: Retrieve id from branches with value above the MAX(value) of departments rows sharing the same code.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE value > (\n SELECT MAX(value) FROM departments AS dept\n WHERE dept.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "departments", "outer_alias": "brc", "inner_alias": "dept", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01425", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(level, type, amount, code)\n managers(salary, code, status, date)\nTask: Retrieve salary from customers whose code is found in managers rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE code IN (\n SELECT code FROM managers AS mgr\n WHERE mgr.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "managers", "outer_alias": "cust", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01426", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(type, id, level, name)\n accounts(type, id, value, level)\nTask: Find name from employees where amount exceeds the count of value from accounts for the same type.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE amount > (\n SELECT COUNT(value) FROM accounts AS acct\n WHERE acct.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "accounts", "outer_alias": "emp", "inner_alias": "acct", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01427", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(status, code, salary, id)\n orders(amount, code, name, salary)\nTask: Retrieve value from projects that have at least one corresponding entry in orders sharing the same id.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "value", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01428", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(id, amount, name, salary)\n branches(status, value, salary, level)\nTask: Find salary from categories where a matching record exists in branches with the same code.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "salary", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01429", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(status, salary, id, level)\n items(code, value, status, level)\nTask: Find name from requests where a matching record exists in items with the same id.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "name", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01430", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(salary, name, date, code)\n employees(date, id, type, name)\nTask: Select amount from managers where status exists in employees for the same status.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "employees", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01431", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(date, status, level, value)\n sales(status, salary, id, amount)\nTask: Retrieve id from regions whose level is found in sales rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE level IN (\n SELECT level FROM sales AS sale\n WHERE sale.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "sales", "outer_alias": "rgn", "inner_alias": "sale", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01432", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(id, status, type, amount)\n orders(amount, id, name, code)\nTask: Find amount from categories where a matching record exists in orders with the same status.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "orders", "outer_alias": "catg", "inner_alias": "ord", "proj_col": "amount", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01433", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(level, status, name, value)\n orders(id, date, value, type)\nTask: Find name from schedules where id appears in orders entries with matching id.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE id IN (\n SELECT id FROM orders AS ord\n WHERE ord.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "orders", "outer_alias": "schd", "inner_alias": "ord", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01434", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(date, salary, type, value)\n staff(value, level, name, code)\nTask: Find value from employees where level appears in staff entries with matching level.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "staff", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01435", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(value, name, salary, id)\n shipments(name, id, salary, value)\nTask: Select code from branches where id exists in shipments for the same status.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE id IN (\n SELECT id FROM shipments AS shp\n WHERE shp.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "shipments", "outer_alias": "brc", "inner_alias": "shp", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01436", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(name, value, level, date)\n staff(amount, code, name, status)\nTask: Find salary from departments where amount exceeds the total value from staff for the same level.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE amount > (\n SELECT SUM(value) FROM staff AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01437", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(salary, date, code, id)\n categories(name, code, level, amount)\nTask: Find id from employees where status appears in categories entries with matching type.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE status IN (\n SELECT status FROM categories AS catg\n WHERE catg.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "categories", "outer_alias": "emp", "inner_alias": "catg", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01438", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(name, status, level, id)\n sales(salary, name, amount, date)\nTask: Retrieve value from tasks with salary above the AVG(value) of sales rows sharing the same status.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE salary > (\n SELECT AVG(value) FROM sales AS sale\n WHERE sale.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "sales", "outer_alias": "tsk", "inner_alias": "sale", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01439", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(value, amount, level, type)\n staff(code, date, value, salary)\nTask: Find salary from items where amount exceeds the maximum amount from staff for the same type.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE amount > (\n SELECT MAX(amount) FROM staff AS empl\n WHERE empl.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "staff", "outer_alias": "lne", "inner_alias": "empl", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01440", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(status, salary, value, code)\n schedules(code, id, name, amount)\nTask: Retrieve code from tasks whose id is found in schedules rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "schedules", "outer_alias": "tsk", "inner_alias": "schd", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01441", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(value, code, type, salary)\n orders(status, id, salary, type)\nTask: Select code from regions where level exists in orders for the same id.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "orders", "outer_alias": "rgn", "inner_alias": "ord", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01442", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(value, level, status, type)\n categories(level, amount, code, type)\nTask: Retrieve id from sales with value above the COUNT(amount) of categories rows sharing the same code.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE value > (\n SELECT COUNT(amount) FROM categories AS catg\n WHERE catg.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "categories", "outer_alias": "sale", "inner_alias": "catg", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01443", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(type, code, level, id)\n products(code, salary, status, id)\nTask: Find id from customers where status appears in products entries with matching level.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "products", "outer_alias": "cust", "inner_alias": "prod", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01444", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(id, value, amount, type)\n requests(amount, date, level, value)\nTask: Find amount from customers where code appears in requests entries with matching status.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "requests", "outer_alias": "cust", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01445", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(code, id, value, date)\n products(name, code, value, status)\nTask: Find code from requests where a matching record exists in products with the same code.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "products", "outer_alias": "ordr", "inner_alias": "prod", "proj_col": "code", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01446", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(status, date, name, level)\n transactions(amount, value, code, status)\nTask: Retrieve id from accounts with amount above the MIN(value) of transactions rows sharing the same id.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE amount > (\n SELECT MIN(value) FROM transactions AS txn\n WHERE txn.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "transactions", "outer_alias": "acct", "inner_alias": "txn", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01447", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(value, status, date, code)\n shipments(code, salary, value, amount)\nTask: Retrieve id from sales that have at least one corresponding entry in shipments sharing the same status.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "shipments", "outer_alias": "sale", "inner_alias": "shp", "proj_col": "id", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01448", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(level, amount, status, id)\n departments(date, value, level, id)\nTask: Find salary from schedules where id appears in departments entries with matching type.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE id IN (\n SELECT id FROM departments AS dept\n WHERE dept.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "departments", "outer_alias": "schd", "inner_alias": "dept", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01449", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(name, code, salary, id)\n invoices(code, amount, date, level)\nTask: Select code from categories where type exists in invoices for the same status.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "invoices", "outer_alias": "catg", "inner_alias": "inv", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01450", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(name, status, amount, type)\n schedules(level, status, amount, code)\nTask: Retrieve code from items that have at least one corresponding entry in schedules sharing the same type.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "schedules", "outer_alias": "lne", "inner_alias": "schd", "proj_col": "code", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01451", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(code, id, value, amount)\n categories(status, value, level, salary)\nTask: Retrieve salary from transactions whose level is found in categories rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "categories", "outer_alias": "txn", "inner_alias": "catg", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01452", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(id, level, date, code)\n employees(status, id, amount, name)\nTask: Find salary from products where amount exceeds the count of value from employees for the same id.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE amount > (\n SELECT COUNT(value) FROM employees AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "employees", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01453", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(date, type, amount, value)\n shipments(date, type, name, code)\nTask: Find value from branches where a matching record exists in shipments with the same type.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "shipments", "outer_alias": "brc", "inner_alias": "shp", "proj_col": "value", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01454", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(code, salary, id, date)\n orders(type, id, value, code)\nTask: Find code from transactions where a matching record exists in orders with the same type.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "orders", "outer_alias": "txn", "inner_alias": "ord", "proj_col": "code", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01455", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(salary, type, id, code)\n products(level, id, name, status)\nTask: Retrieve salary from accounts whose code is found in products rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE code IN (\n SELECT code FROM products AS prod\n WHERE prod.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01456", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(level, code, date, amount)\n accounts(id, level, date, value)\nTask: Select id from requests where status exists in accounts for the same type.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM accounts AS acct\n WHERE acct.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "accounts", "outer_alias": "ordr", "inner_alias": "acct", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01457", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(salary, id, type, date)\n schedules(code, name, amount, salary)\nTask: Retrieve code from invoices that have at least one corresponding entry in schedules sharing the same type.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01458", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(id, name, value, salary)\n tasks(id, salary, name, level)\nTask: Find salary from items where a matching record exists in tasks with the same id.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "tasks", "outer_alias": "lne", "inner_alias": "tsk", "proj_col": "salary", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01459", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(level, date, name, value)\n tasks(type, date, code, status)\nTask: Retrieve code from items with salary above the SUM(salary) of tasks rows sharing the same type.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE salary > (\n SELECT SUM(salary) FROM tasks AS tsk\n WHERE tsk.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "tasks", "outer_alias": "lne", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01460", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(level, id, salary, amount)\n accounts(date, id, amount, value)\nTask: Find salary from products where a matching record exists in accounts with the same level.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "accounts", "outer_alias": "prod", "inner_alias": "acct", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01461", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(code, id, status, name)\n shipments(date, amount, id, value)\nTask: Find code from orders where a matching record exists in shipments with the same id.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "shipments", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01462", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(salary, status, name, level)\n schedules(id, salary, value, name)\nTask: Find id from items where code appears in schedules entries with matching type.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE code IN (\n SELECT code FROM schedules AS schd\n WHERE schd.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "schedules", "outer_alias": "lne", "inner_alias": "schd", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01463", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(level, type, name, salary)\n orders(type, id, status, amount)\nTask: Retrieve value from tasks that have at least one corresponding entry in orders sharing the same id.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "orders", "outer_alias": "tsk", "inner_alias": "ord", "proj_col": "value", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01464", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(salary, type, id, date)\n staff(salary, id, amount, level)\nTask: Find id from accounts where value exceeds the total salary from staff for the same type.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE value > (\n SELECT SUM(salary) FROM staff AS empl\n WHERE empl.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01465", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(type, status, level, salary)\n invoices(value, amount, type, code)\nTask: Find name from products where salary exceeds the minimum salary from invoices for the same type.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE salary > (\n SELECT MIN(salary) FROM invoices AS inv\n WHERE inv.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "invoices", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01466", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(type, date, code, level)\n requests(date, name, status, value)\nTask: Retrieve id from managers that have at least one corresponding entry in requests sharing the same type.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01467", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(date, status, type, amount)\n departments(name, salary, value, amount)\nTask: Find id from transactions where a matching record exists in departments with the same id.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "departments", "outer_alias": "txn", "inner_alias": "dept", "proj_col": "id", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01468", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(level, date, code, name)\n invoices(salary, code, status, name)\nTask: Find salary from orders where value exceeds the total salary from invoices for the same type.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE value > (\n SELECT SUM(salary) FROM invoices AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "invoices", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01469", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(name, type, status, amount)\n regions(value, salary, date, code)\nTask: Find code from staff where a matching record exists in regions with the same code.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "regions", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01470", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(level, name, salary, status)\n customers(level, id, value, name)\nTask: Retrieve name from tasks with amount above the MAX(amount) of customers rows sharing the same type.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE amount > (\n SELECT MAX(amount) FROM customers AS cust\n WHERE cust.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "customers", "outer_alias": "tsk", "inner_alias": "cust", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01471", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(status, date, salary, name)\n managers(amount, date, type, name)\nTask: Select salary from employees where status exists in managers for the same status.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01472", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(id, status, amount, value)\n branches(date, amount, id, type)\nTask: Select value from projects where status exists in branches for the same id.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "branches", "outer_alias": "prj", "inner_alias": "brc", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01473", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(code, amount, name, id)\n customers(status, name, level, amount)\nTask: Select name from orders where level exists in customers for the same type.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "customers", "outer_alias": "ord", "inner_alias": "cust", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01474", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(amount, name, code, id)\n employees(level, name, type, salary)\nTask: Find salary from accounts where status appears in employees entries with matching id.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "employees", "outer_alias": "acct", "inner_alias": "emp", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01475", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(value, salary, date, code)\n transactions(value, status, level, id)\nTask: Retrieve salary from employees that have at least one corresponding entry in transactions sharing the same code.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "transactions", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01476", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(status, amount, type, date)\n employees(code, level, date, type)\nTask: Retrieve id from categories that have at least one corresponding entry in employees sharing the same type.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "employees", "outer_alias": "catg", "inner_alias": "emp", "proj_col": "id", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01477", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(name, value, salary, type)\n accounts(status, id, type, name)\nTask: Retrieve value from managers with value above the COUNT(value) of accounts rows sharing the same code.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE value > (\n SELECT COUNT(value) FROM accounts AS acct\n WHERE acct.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "accounts", "outer_alias": "mgr", "inner_alias": "acct", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01478", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(amount, status, value, code)\n items(value, salary, status, code)\nTask: Retrieve code from regions whose type is found in items rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "items", "outer_alias": "rgn", "inner_alias": "lne", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01479", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(status, name, value, amount)\n accounts(amount, name, value, type)\nTask: Select name from tasks where id exists in accounts for the same id.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE id IN (\n SELECT id FROM accounts AS acct\n WHERE acct.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "accounts", "outer_alias": "tsk", "inner_alias": "acct", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01480", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(type, id, amount, status)\n products(level, value, type, name)\nTask: Retrieve value from requests whose type is found in products rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE type IN (\n SELECT type FROM products AS prod\n WHERE prod.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "products", "outer_alias": "ordr", "inner_alias": "prod", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01481", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(amount, name, salary, status)\n schedules(code, level, type, value)\nTask: Retrieve value from projects whose type is found in schedules rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "schedules", "outer_alias": "prj", "inner_alias": "schd", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01482", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(code, name, amount, salary)\n shipments(value, salary, name, id)\nTask: Select name from staff where code exists in shipments for the same level.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01483", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(name, salary, date, value)\n employees(level, status, amount, date)\nTask: Find amount from departments where salary exceeds the average amount from employees for the same type.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE salary > (\n SELECT AVG(amount) FROM employees AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "employees", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01484", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(name, code, value, id)\n transactions(code, amount, name, type)\nTask: Find code from managers where amount exceeds the maximum amount from transactions for the same type.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE amount > (\n SELECT MAX(amount) FROM transactions AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "transactions", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01485", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(status, type, date, name)\n invoices(id, type, status, name)\nTask: Find amount from employees where type appears in invoices entries with matching status.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01486", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(id, name, status, level)\n schedules(status, code, type, id)\nTask: Retrieve id from categories that have at least one corresponding entry in schedules sharing the same id.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "schedules", "outer_alias": "catg", "inner_alias": "schd", "proj_col": "id", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01487", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(status, date, amount, level)\n products(date, name, code, value)\nTask: Find id from transactions where level appears in products entries with matching type.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01488", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(amount, value, id, status)\n requests(level, status, code, value)\nTask: Find name from projects where a matching record exists in requests with the same level.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "name", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01489", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(code, name, id, date)\n regions(salary, code, level, id)\nTask: Find code from departments where amount exceeds the total salary from regions for the same type.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE amount > (\n SELECT SUM(salary) FROM regions AS rgn\n WHERE rgn.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "regions", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01490", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(level, code, salary, value)\n orders(amount, salary, name, id)\nTask: Find salary from requests where a matching record exists in orders with the same id.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "orders", "outer_alias": "ordr", "inner_alias": "ord", "proj_col": "salary", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01491", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(value, type, salary, name)\n orders(status, type, level, name)\nTask: Retrieve amount from employees whose level is found in orders rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "orders", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01492", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(code, value, amount, level)\n managers(date, name, status, code)\nTask: Select value from sales where status exists in managers for the same status.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01493", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(type, level, amount, salary)\n shipments(name, salary, status, id)\nTask: Retrieve name from schedules that have at least one corresponding entry in shipments sharing the same type.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "shipments", "outer_alias": "schd", "inner_alias": "shp", "proj_col": "name", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01494", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(id, level, date, name)\n schedules(id, name, date, amount)\nTask: Find value from orders where a matching record exists in schedules with the same level.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "schedules", "outer_alias": "ord", "inner_alias": "schd", "proj_col": "value", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01495", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(id, value, type, salary)\n sales(code, date, type, salary)\nTask: Find code from transactions where code appears in sales entries with matching status.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM sales AS sale\n WHERE sale.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "sales", "outer_alias": "txn", "inner_alias": "sale", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01496", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(id, name, status, date)\n items(salary, amount, type, value)\nTask: Find name from managers where type appears in items entries with matching status.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "items", "outer_alias": "mgr", "inner_alias": "lne", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01497", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(salary, code, id, value)\n customers(code, salary, level, value)\nTask: Find code from projects where amount exceeds the count of value from customers for the same level.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE amount > (\n SELECT COUNT(value) FROM customers AS cust\n WHERE cust.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "customers", "outer_alias": "prj", "inner_alias": "cust", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01498", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(id, salary, type, level)\n customers(value, status, name, salary)\nTask: Find value from categories where status appears in customers entries with matching id.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE status IN (\n SELECT status FROM customers AS cust\n WHERE cust.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "customers", "outer_alias": "catg", "inner_alias": "cust", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01499", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(level, code, id, date)\n transactions(status, level, name, type)\nTask: Find code from regions where id appears in transactions entries with matching type.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE id IN (\n SELECT id FROM transactions AS txn\n WHERE txn.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "transactions", "outer_alias": "rgn", "inner_alias": "txn", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01500", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(type, name, date, id)\n schedules(type, name, date, id)\nTask: Select code from regions where id exists in schedules for the same status.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "schedules", "outer_alias": "rgn", "inner_alias": "schd", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01501", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(type, name, date, level)\n staff(name, amount, salary, status)\nTask: Select id from projects where status exists in staff for the same code.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "staff", "outer_alias": "prj", "inner_alias": "empl", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01502", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(amount, name, code, id)\n requests(code, id, value, amount)\nTask: Select code from staff where type exists in requests for the same type.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "requests", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01503", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(name, value, code, id)\n sales(date, value, id, type)\nTask: Find salary from customers where code appears in sales entries with matching id.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE code IN (\n SELECT code FROM sales AS sale\n WHERE sale.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "sales", "outer_alias": "cust", "inner_alias": "sale", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01504", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(name, amount, type, salary)\n transactions(code, level, type, salary)\nTask: Select value from requests where level exists in transactions for the same id.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01505", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(name, amount, value, id)\n products(level, type, value, code)\nTask: Find name from managers where amount exceeds the average amount from products for the same type.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM products AS prod\n WHERE prod.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01506", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(code, id, value, date)\n managers(status, salary, type, date)\nTask: Select amount from invoices where status exists in managers for the same code.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "managers", "outer_alias": "inv", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01507", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(amount, status, id, name)\n branches(date, amount, code, value)\nTask: Find id from items where a matching record exists in branches with the same level.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "id", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01508", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(type, amount, level, name)\n items(date, salary, level, id)\nTask: Select name from tasks where level exists in items for the same type.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM items AS lne\n WHERE lne.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "items", "outer_alias": "tsk", "inner_alias": "lne", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01509", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(salary, code, value, name)\n schedules(date, status, level, value)\nTask: Find value from regions where id appears in schedules entries with matching type.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "schedules", "outer_alias": "rgn", "inner_alias": "schd", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01510", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(code, value, date, level)\n shipments(name, date, status, level)\nTask: Retrieve code from customers with amount above the COUNT(amount) of shipments rows sharing the same type.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE amount > (\n SELECT COUNT(amount) FROM shipments AS shp\n WHERE shp.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "shipments", "outer_alias": "cust", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01511", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(type, id, date, code)\n employees(type, level, value, id)\nTask: Retrieve code from branches that have at least one corresponding entry in employees sharing the same level.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "employees", "outer_alias": "brc", "inner_alias": "emp", "proj_col": "code", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01512", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(id, name, type, date)\n departments(id, level, value, name)\nTask: Find value from managers where salary exceeds the average amount from departments for the same id.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE salary > (\n SELECT AVG(amount) FROM departments AS dept\n WHERE dept.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "departments", "outer_alias": "mgr", "inner_alias": "dept", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01513", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(type, value, name, amount)\n managers(level, code, status, salary)\nTask: Retrieve id from products that have at least one corresponding entry in managers sharing the same status.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "managers", "outer_alias": "prod", "inner_alias": "mgr", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01514", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(date, salary, id, value)\n customers(type, level, code, value)\nTask: Retrieve code from sales with salary above the MAX(value) of customers rows sharing the same code.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE salary > (\n SELECT MAX(value) FROM customers AS cust\n WHERE cust.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "customers", "outer_alias": "sale", "inner_alias": "cust", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01515", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(value, amount, status, salary)\n regions(date, type, value, code)\nTask: Retrieve value from requests with value above the AVG(salary) of regions rows sharing the same status.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE value > (\n SELECT AVG(salary) FROM regions AS rgn\n WHERE rgn.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "regions", "outer_alias": "ordr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01516", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(status, id, name, type)\n categories(name, date, level, id)\nTask: Retrieve code from accounts that have at least one corresponding entry in categories sharing the same type.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "categories", "outer_alias": "acct", "inner_alias": "catg", "proj_col": "code", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01517", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(value, name, date, level)\n branches(amount, type, salary, code)\nTask: Find value from invoices where salary exceeds the total value from branches for the same code.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE salary > (\n SELECT SUM(value) FROM branches AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "branches", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01518", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(code, date, amount, id)\n tasks(id, type, status, amount)\nTask: Find value from accounts where value exceeds the average value from tasks for the same level.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE value > (\n SELECT AVG(value) FROM tasks AS tsk\n WHERE tsk.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "tasks", "outer_alias": "acct", "inner_alias": "tsk", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01519", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(type, level, value, amount)\n requests(code, date, status, amount)\nTask: Find value from products where value exceeds the count of amount from requests for the same id.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE value > (\n SELECT COUNT(amount) FROM requests AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "requests", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01520", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(id, date, status, salary)\n orders(level, code, id, status)\nTask: Find salary from requests where value exceeds the maximum amount from orders for the same level.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE value > (\n SELECT MAX(amount) FROM orders AS ord\n WHERE ord.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "orders", "outer_alias": "ordr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01521", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(level, status, type, amount)\n regions(code, id, amount, date)\nTask: Retrieve name from items that have at least one corresponding entry in regions sharing the same level.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "regions", "outer_alias": "lne", "inner_alias": "rgn", "proj_col": "name", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01522", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(level, value, amount, id)\n accounts(code, type, date, value)\nTask: Find amount from invoices where type appears in accounts entries with matching code.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01523", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(type, name, date, level)\n tasks(date, value, status, name)\nTask: Find amount from products where a matching record exists in tasks with the same id.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "tasks", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01524", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(amount, level, type, id)\n managers(salary, id, amount, level)\nTask: Retrieve code from categories that have at least one corresponding entry in managers sharing the same code.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "managers", "outer_alias": "catg", "inner_alias": "mgr", "proj_col": "code", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01525", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(id, type, level, amount)\n invoices(date, status, code, salary)\nTask: Find amount from orders where amount exceeds the total salary from invoices for the same status.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE amount > (\n SELECT SUM(salary) FROM invoices AS inv\n WHERE inv.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "invoices", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01526", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(amount, value, salary, level)\n transactions(status, date, code, id)\nTask: Find name from items where a matching record exists in transactions with the same level.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "transactions", "outer_alias": "lne", "inner_alias": "txn", "proj_col": "name", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01527", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(id, level, value, amount)\n departments(name, amount, level, code)\nTask: Retrieve value from requests with salary above the COUNT(amount) of departments rows sharing the same type.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE salary > (\n SELECT COUNT(amount) FROM departments AS dept\n WHERE dept.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "departments", "outer_alias": "ordr", "inner_alias": "dept", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01528", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(type, id, status, code)\n accounts(level, name, status, value)\nTask: Find code from departments where level appears in accounts entries with matching status.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE level IN (\n SELECT level FROM accounts AS acct\n WHERE acct.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "accounts", "outer_alias": "dept", "inner_alias": "acct", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01529", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(level, code, value, name)\n items(value, amount, date, type)\nTask: Find code from products where value exceeds the minimum amount from items for the same status.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE value > (\n SELECT MIN(amount) FROM items AS lne\n WHERE lne.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "items", "outer_alias": "prod", "inner_alias": "lne", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01530", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(salary, id, status, name)\n accounts(name, status, amount, date)\nTask: Retrieve id from products whose id is found in accounts rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE id IN (\n SELECT id FROM accounts AS acct\n WHERE acct.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "accounts", "outer_alias": "prod", "inner_alias": "acct", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01531", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(name, value, amount, date)\n accounts(salary, level, name, type)\nTask: Retrieve name from requests with salary above the MIN(amount) of accounts rows sharing the same type.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE salary > (\n SELECT MIN(amount) FROM accounts AS acct\n WHERE acct.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "accounts", "outer_alias": "ordr", "inner_alias": "acct", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01532", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(value, code, name, status)\n regions(value, type, name, id)\nTask: Retrieve value from sales with value above the SUM(amount) of regions rows sharing the same level.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE value > (\n SELECT SUM(amount) FROM regions AS rgn\n WHERE rgn.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "regions", "outer_alias": "sale", "inner_alias": "rgn", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01533", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, status, type, code)\n departments(name, code, salary, date)\nTask: Select value from shipments where level exists in departments for the same level.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "departments", "outer_alias": "shp", "inner_alias": "dept", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01534", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(name, id, date, salary)\n branches(amount, code, name, value)\nTask: Find code from departments where value exceeds the minimum salary from branches for the same type.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE value > (\n SELECT MIN(salary) FROM branches AS brc\n WHERE brc.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "branches", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01535", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(status, salary, date, name)\n items(level, date, code, salary)\nTask: Find name from categories where status appears in items entries with matching level.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01536", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(value, id, status, amount)\n branches(type, level, status, value)\nTask: Find salary from categories where salary exceeds the minimum salary from branches for the same type.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE salary > (\n SELECT MIN(salary) FROM branches AS brc\n WHERE brc.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01537", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(salary, date, id, code)\n managers(name, amount, salary, type)\nTask: Retrieve name from accounts with salary above the AVG(salary) of managers rows sharing the same status.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE salary > (\n SELECT AVG(salary) FROM managers AS mgr\n WHERE mgr.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "managers", "outer_alias": "acct", "inner_alias": "mgr", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01538", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(status, date, id, amount)\n employees(amount, id, code, type)\nTask: Find name from regions where a matching record exists in employees with the same id.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "name", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01539", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(id, amount, name, code)\n schedules(id, level, amount, type)\nTask: Find name from categories where a matching record exists in schedules with the same type.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "schedules", "outer_alias": "catg", "inner_alias": "schd", "proj_col": "name", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01540", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(id, salary, status, amount)\n requests(status, id, type, name)\nTask: Find id from sales where id appears in requests entries with matching id.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE id IN (\n SELECT id FROM requests AS ordr\n WHERE ordr.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "requests", "outer_alias": "sale", "inner_alias": "ordr", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01541", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(value, name, level, code)\n managers(amount, date, type, value)\nTask: Retrieve amount from departments with amount above the COUNT(salary) of managers rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE amount > (\n SELECT COUNT(salary) FROM managers AS mgr\n WHERE mgr.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "managers", "outer_alias": "dept", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01542", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(status, code, amount, id)\n employees(name, code, status, salary)\nTask: Find amount from accounts where salary exceeds the maximum value from employees for the same id.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE salary > (\n SELECT MAX(value) FROM employees AS emp\n WHERE emp.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "employees", "outer_alias": "acct", "inner_alias": "emp", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01543", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(name, value, level, salary)\n requests(salary, amount, level, name)\nTask: Find code from projects where value exceeds the minimum value from requests for the same type.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE value > (\n SELECT MIN(value) FROM requests AS ordr\n WHERE ordr.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01544", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(date, type, name, id)\n customers(level, id, value, date)\nTask: Retrieve id from shipments whose level is found in customers rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01545", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(name, value, level, id)\n categories(name, status, date, level)\nTask: Select code from invoices where level exists in categories for the same status.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "categories", "outer_alias": "inv", "inner_alias": "catg", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01546", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(salary, level, value, code)\n shipments(level, status, amount, date)\nTask: Retrieve salary from projects that have at least one corresponding entry in shipments sharing the same type.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "shipments", "outer_alias": "prj", "inner_alias": "shp", "proj_col": "salary", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01547", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(level, salary, date, id)\n customers(date, name, salary, value)\nTask: Retrieve code from requests whose level is found in customers rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "customers", "outer_alias": "ordr", "inner_alias": "cust", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01548", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(name, salary, date, value)\n customers(id, date, salary, amount)\nTask: Select value from branches where code exists in customers for the same id.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "customers", "outer_alias": "brc", "inner_alias": "cust", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01549", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(status, amount, value, salary)\n transactions(type, code, value, date)\nTask: Find id from requests where value exceeds the average amount from transactions for the same level.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE value > (\n SELECT AVG(amount) FROM transactions AS txn\n WHERE txn.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01550", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(name, type, status, code)\n requests(date, salary, amount, value)\nTask: Select name from departments where code exists in requests for the same id.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "requests", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01551", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(value, type, amount, status)\n shipments(name, code, salary, type)\nTask: Retrieve amount from orders with amount above the MIN(amount) of shipments rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE amount > (\n SELECT MIN(amount) FROM shipments AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "shipments", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01552", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(name, type, amount, status)\n items(id, code, value, amount)\nTask: Retrieve name from products with salary above the MIN(value) of items rows sharing the same id.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE salary > (\n SELECT MIN(value) FROM items AS lne\n WHERE lne.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "items", "outer_alias": "prod", "inner_alias": "lne", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01553", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(salary, id, name, code)\n accounts(name, level, code, value)\nTask: Retrieve amount from sales with salary above the AVG(amount) of accounts rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE salary > (\n SELECT AVG(amount) FROM accounts AS acct\n WHERE acct.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "accounts", "outer_alias": "sale", "inner_alias": "acct", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01554", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(amount, name, value, status)\n projects(status, value, date, type)\nTask: Retrieve id from requests whose code is found in projects rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "projects", "outer_alias": "ordr", "inner_alias": "prj", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01555", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(code, id, value, name)\n items(value, level, type, name)\nTask: Find code from employees where amount exceeds the maximum salary from items for the same type.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE amount > (\n SELECT MAX(salary) FROM items AS lne\n WHERE lne.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "items", "outer_alias": "emp", "inner_alias": "lne", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01556", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(name, status, salary, level)\n items(type, value, name, amount)\nTask: Retrieve name from shipments with salary above the MAX(value) of items rows sharing the same status.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE salary > (\n SELECT MAX(value) FROM items AS lne\n WHERE lne.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "items", "outer_alias": "shp", "inner_alias": "lne", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01557", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(value, salary, type, code)\n staff(id, salary, name, amount)\nTask: Retrieve amount from orders whose id is found in staff rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE id IN (\n SELECT id FROM staff AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "staff", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01558", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(id, code, name, level)\n managers(id, status, code, value)\nTask: Find amount from branches where status appears in managers entries with matching level.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01559", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(value, date, type, code)\n tasks(name, salary, type, code)\nTask: Select name from employees where status exists in tasks for the same code.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE status IN (\n SELECT status FROM tasks AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "tasks", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01560", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(value, salary, id, date)\n transactions(amount, code, level, name)\nTask: Find salary from employees where code appears in transactions entries with matching type.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "transactions", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01561", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(status, name, amount, date)\n departments(amount, code, salary, value)\nTask: Find code from projects where type appears in departments entries with matching status.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE type IN (\n SELECT type FROM departments AS dept\n WHERE dept.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "departments", "outer_alias": "prj", "inner_alias": "dept", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01562", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(value, id, salary, amount)\n regions(value, level, status, type)\nTask: Retrieve name from projects with salary above the AVG(salary) of regions rows sharing the same type.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE salary > (\n SELECT AVG(salary) FROM regions AS rgn\n WHERE rgn.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "regions", "outer_alias": "prj", "inner_alias": "rgn", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01563", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(status, salary, level, date)\n employees(name, id, status, salary)\nTask: Retrieve code from schedules with salary above the MAX(salary) of employees rows sharing the same id.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE salary > (\n SELECT MAX(salary) FROM employees AS emp\n WHERE emp.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01564", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(id, type, name, amount)\n projects(type, value, id, status)\nTask: Find value from transactions where salary exceeds the total value from projects for the same level.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE salary > (\n SELECT SUM(value) FROM projects AS prj\n WHERE prj.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01565", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(status, date, value, code)\n employees(id, value, name, level)\nTask: Retrieve salary from managers that have at least one corresponding entry in employees sharing the same status.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "employees", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01566", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(value, status, salary, amount)\n requests(code, type, amount, name)\nTask: Find value from tasks where a matching record exists in requests with the same code.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "value", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01567", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(amount, date, type, value)\n sales(type, status, level, name)\nTask: Retrieve amount from managers whose id is found in sales rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM sales AS sale\n WHERE sale.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "sales", "outer_alias": "mgr", "inner_alias": "sale", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01568", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(code, level, name, id)\n employees(type, amount, level, name)\nTask: Retrieve code from transactions with amount above the COUNT(amount) of employees rows sharing the same status.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE amount > (\n SELECT COUNT(amount) FROM employees AS emp\n WHERE emp.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01569", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(id, level, code, value)\n categories(value, id, code, name)\nTask: Find amount from staff where a matching record exists in categories with the same code.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "categories", "outer_alias": "empl", "inner_alias": "catg", "proj_col": "amount", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01570", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(name, code, amount, level)\n employees(level, salary, type, value)\nTask: Retrieve amount from orders with amount above the AVG(salary) of employees rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE amount > (\n SELECT AVG(salary) FROM employees AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01571", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(salary, code, date, level)\n schedules(id, name, salary, status)\nTask: Find value from sales where a matching record exists in schedules with the same id.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "schedules", "outer_alias": "sale", "inner_alias": "schd", "proj_col": "value", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01572", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(value, level, type, amount)\n branches(date, type, code, name)\nTask: Find value from requests where code appears in branches entries with matching status.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "branches", "outer_alias": "ordr", "inner_alias": "brc", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01573", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(name, salary, id, code)\n employees(code, value, name, amount)\nTask: Retrieve value from sales that have at least one corresponding entry in employees sharing the same code.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "employees", "outer_alias": "sale", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01574", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(amount, level, value, type)\n projects(type, level, name, date)\nTask: Find amount from orders where code appears in projects entries with matching status.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "projects", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01575", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(value, level, status, date)\n employees(date, amount, salary, status)\nTask: Select id from schedules where id exists in employees for the same level.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01576", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(code, value, id, name)\n sales(name, code, salary, value)\nTask: Find id from managers where a matching record exists in sales with the same id.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "sales", "outer_alias": "mgr", "inner_alias": "sale", "proj_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01577", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(type, date, code, status)\n sales(amount, level, name, salary)\nTask: Find name from categories where type appears in sales entries with matching id.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE type IN (\n SELECT type FROM sales AS sale\n WHERE sale.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "sales", "outer_alias": "catg", "inner_alias": "sale", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01578", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(value, status, type, amount)\n customers(status, date, id, salary)\nTask: Find code from categories where type appears in customers entries with matching level.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "customers", "outer_alias": "catg", "inner_alias": "cust", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01579", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(salary, name, status, type)\n regions(date, status, name, type)\nTask: Select value from projects where status exists in regions for the same id.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE status IN (\n SELECT status FROM regions AS rgn\n WHERE rgn.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "regions", "outer_alias": "prj", "inner_alias": "rgn", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01580", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(code, date, status, id)\n shipments(value, id, salary, code)\nTask: Find value from employees where salary exceeds the minimum amount from shipments for the same level.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE salary > (\n SELECT MIN(amount) FROM shipments AS shp\n WHERE shp.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "shipments", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01581", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(value, name, status, type)\n schedules(status, id, type, code)\nTask: Select amount from tasks where code exists in schedules for the same id.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE code IN (\n SELECT code FROM schedules AS schd\n WHERE schd.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "schedules", "outer_alias": "tsk", "inner_alias": "schd", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01582", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(level, salary, id, status)\n shipments(type, id, level, value)\nTask: Retrieve id from transactions whose level is found in shipments rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM shipments AS shp\n WHERE shp.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "shipments", "outer_alias": "txn", "inner_alias": "shp", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01583", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(amount, type, value, date)\n branches(type, amount, code, status)\nTask: Find name from employees where status appears in branches entries with matching id.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "branches", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01584", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(id, amount, status, type)\n items(name, salary, value, code)\nTask: Retrieve code from branches with amount above the MAX(value) of items rows sharing the same id.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE amount > (\n SELECT MAX(value) FROM items AS lne\n WHERE lne.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "items", "outer_alias": "brc", "inner_alias": "lne", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01585", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(name, value, date, status)\n departments(status, level, date, amount)\nTask: Find code from sales where value exceeds the minimum amount from departments for the same code.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE value > (\n SELECT MIN(amount) FROM departments AS dept\n WHERE dept.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "departments", "outer_alias": "sale", "inner_alias": "dept", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01586", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(id, value, type, status)\n managers(value, level, date, id)\nTask: Find salary from branches where a matching record exists in managers with the same level.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "salary", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01587", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(code, id, status, type)\n categories(name, id, salary, status)\nTask: Find value from schedules where salary exceeds the total salary from categories for the same status.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE salary > (\n SELECT SUM(salary) FROM categories AS catg\n WHERE catg.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "categories", "outer_alias": "schd", "inner_alias": "catg", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01588", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(salary, amount, value, name)\n customers(date, level, id, status)\nTask: Find id from regions where a matching record exists in customers with the same id.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "customers", "outer_alias": "rgn", "inner_alias": "cust", "proj_col": "id", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01589", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(date, status, id, salary)\n departments(status, date, code, level)\nTask: Select name from branches where level exists in departments for the same type.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "departments", "outer_alias": "brc", "inner_alias": "dept", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01590", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(level, status, type, date)\n categories(value, level, code, date)\nTask: Find id from shipments where status appears in categories entries with matching id.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE status IN (\n SELECT status FROM categories AS catg\n WHERE catg.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "categories", "outer_alias": "shp", "inner_alias": "catg", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01591", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(date, type, level, salary)\n staff(salary, date, level, amount)\nTask: Find name from schedules where a matching record exists in staff with the same type.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "staff", "outer_alias": "schd", "inner_alias": "empl", "proj_col": "name", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01592", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(amount, salary, name, id)\n regions(status, value, code, amount)\nTask: Find value from tasks where salary exceeds the average value from regions for the same type.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE salary > (\n SELECT AVG(value) FROM regions AS rgn\n WHERE rgn.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "regions", "outer_alias": "tsk", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01593", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(id, code, value, level)\n categories(status, name, code, id)\nTask: Find value from invoices where a matching record exists in categories with the same code.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "categories", "outer_alias": "inv", "inner_alias": "catg", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01594", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(amount, id, name, level)\n sales(type, code, date, level)\nTask: Find name from requests where a matching record exists in sales with the same type.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "sales", "outer_alias": "ordr", "inner_alias": "sale", "proj_col": "name", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01595", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(date, status, value, salary)\n regions(amount, status, id, type)\nTask: Find id from orders where code appears in regions entries with matching code.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "regions", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01596", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(code, name, status, value)\n regions(date, amount, code, status)\nTask: Retrieve value from orders with salary above the AVG(amount) of regions rows sharing the same code.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE salary > (\n SELECT AVG(amount) FROM regions AS rgn\n WHERE rgn.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "regions", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01597", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(status, date, code, salary)\n branches(value, amount, type, code)\nTask: Retrieve name from departments with salary above the SUM(salary) of branches rows sharing the same status.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE salary > (\n SELECT SUM(salary) FROM branches AS brc\n WHERE brc.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "branches", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01598", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(value, amount, type, name)\n orders(code, salary, id, value)\nTask: Retrieve code from employees that have at least one corresponding entry in orders sharing the same status.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "orders", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01599", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(type, amount, id, name)\n orders(id, status, name, code)\nTask: Find name from staff where value exceeds the total value from orders for the same id.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE value > (\n SELECT SUM(value) FROM orders AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "orders", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01600", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(value, id, status, level)\n projects(level, value, id, salary)\nTask: Find salary from staff where amount exceeds the minimum salary from projects for the same id.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE amount > (\n SELECT MIN(salary) FROM projects AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "projects", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01601", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(id, date, salary, value)\n products(salary, status, amount, value)\nTask: Retrieve amount from tasks whose type is found in products rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM products AS prod\n WHERE prod.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "products", "outer_alias": "tsk", "inner_alias": "prod", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01602", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(code, status, id, amount)\n employees(type, level, date, name)\nTask: Retrieve code from staff with salary above the SUM(amount) of employees rows sharing the same type.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE salary > (\n SELECT SUM(amount) FROM employees AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01603", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(salary, date, level, code)\n products(value, name, code, amount)\nTask: Find amount from items where id appears in products entries with matching id.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "products", "outer_alias": "lne", "inner_alias": "prod", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01604", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(salary, level, id, date)\n items(name, status, type, date)\nTask: Retrieve name from sales that have at least one corresponding entry in items sharing the same id.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "items", "outer_alias": "sale", "inner_alias": "lne", "proj_col": "name", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01605", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(name, date, salary, code)\n schedules(name, status, type, level)\nTask: Retrieve amount from projects with amount above the MAX(salary) of schedules rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE amount > (\n SELECT MAX(salary) FROM schedules AS schd\n WHERE schd.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "schedules", "outer_alias": "prj", "inner_alias": "schd", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01606", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(value, status, code, name)\n branches(level, salary, status, date)\nTask: Find salary from items where a matching record exists in branches with the same code.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "salary", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01607", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(salary, id, status, type)\n managers(status, date, id, level)\nTask: Find value from transactions where id appears in managers entries with matching code.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "managers", "outer_alias": "txn", "inner_alias": "mgr", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01608", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(amount, status, date, id)\n categories(name, level, status, value)\nTask: Select id from transactions where id exists in categories for the same status.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "categories", "outer_alias": "txn", "inner_alias": "catg", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01609", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(type, level, salary, value)\n schedules(level, date, amount, id)\nTask: Find salary from branches where a matching record exists in schedules with the same type.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "schedules", "outer_alias": "brc", "inner_alias": "schd", "proj_col": "salary", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01610", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(code, status, salary, id)\n orders(salary, value, level, date)\nTask: Retrieve id from products that have at least one corresponding entry in orders sharing the same status.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "orders", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01611", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(amount, level, salary, name)\n employees(name, amount, value, type)\nTask: Retrieve id from items that have at least one corresponding entry in employees sharing the same status.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "id", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01612", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(level, value, code, name)\n regions(salary, value, level, id)\nTask: Find id from customers where salary exceeds the maximum amount from regions for the same level.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE salary > (\n SELECT MAX(amount) FROM regions AS rgn\n WHERE rgn.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01613", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(name, type, amount, level)\n shipments(value, date, id, salary)\nTask: Find amount from requests where level appears in shipments entries with matching level.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE level IN (\n SELECT level FROM shipments AS shp\n WHERE shp.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "shipments", "outer_alias": "ordr", "inner_alias": "shp", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01614", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(type, salary, date, level)\n branches(salary, amount, date, value)\nTask: Retrieve id from schedules that have at least one corresponding entry in branches sharing the same code.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "branches", "outer_alias": "schd", "inner_alias": "brc", "proj_col": "id", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01615", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(salary, value, level, id)\n projects(date, level, status, code)\nTask: Find code from invoices where amount exceeds the total amount from projects for the same code.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE amount > (\n SELECT SUM(amount) FROM projects AS prj\n WHERE prj.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "projects", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01616", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(type, salary, code, amount)\n orders(type, code, id, level)\nTask: Retrieve value from accounts whose code is found in orders rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE code IN (\n SELECT code FROM orders AS ord\n WHERE ord.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "orders", "outer_alias": "acct", "inner_alias": "ord", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01617", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(level, amount, name, id)\n invoices(code, amount, name, level)\nTask: Find id from managers where a matching record exists in invoices with the same id.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "invoices", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01618", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(name, value, salary, level)\n regions(type, date, salary, code)\nTask: Retrieve id from staff that have at least one corresponding entry in regions sharing the same id.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "regions", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01619", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, name, code, amount)\n products(value, name, date, amount)\nTask: Retrieve salary from regions with value above the AVG(amount) of products rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE value > (\n SELECT AVG(amount) FROM products AS prod\n WHERE prod.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01620", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(amount, date, name, type)\n branches(level, date, code, type)\nTask: Find salary from accounts where salary exceeds the maximum salary from branches for the same type.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE salary > (\n SELECT MAX(salary) FROM branches AS brc\n WHERE brc.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "branches", "outer_alias": "acct", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01621", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(status, name, level, amount)\n projects(type, date, salary, id)\nTask: Select code from accounts where type exists in projects for the same code.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE type IN (\n SELECT type FROM projects AS prj\n WHERE prj.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "projects", "outer_alias": "acct", "inner_alias": "prj", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01622", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(type, value, code, amount)\n products(type, amount, code, salary)\nTask: Retrieve salary from transactions with salary above the AVG(value) of products rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE salary > (\n SELECT AVG(value) FROM products AS prod\n WHERE prod.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01623", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(status, date, code, type)\n employees(code, id, name, level)\nTask: Retrieve value from requests that have at least one corresponding entry in employees sharing the same code.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "employees", "outer_alias": "ordr", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01624", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(level, type, name, id)\n regions(name, id, status, code)\nTask: Retrieve name from schedules that have at least one corresponding entry in regions sharing the same code.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "name", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01625", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(id, type, status, value)\n branches(name, amount, salary, level)\nTask: Find salary from managers where value exceeds the maximum salary from branches for the same level.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE value > (\n SELECT MAX(salary) FROM branches AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "branches", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01626", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(status, salary, code, level)\n shipments(type, amount, level, value)\nTask: Retrieve value from departments whose code is found in shipments rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "shipments", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01627", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(salary, status, date, code)\n employees(level, code, id, amount)\nTask: Find name from sales where code appears in employees entries with matching type.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "employees", "outer_alias": "sale", "inner_alias": "emp", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01628", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(id, name, salary, value)\n orders(name, code, level, value)\nTask: Retrieve value from departments whose type is found in orders rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE type IN (\n SELECT type FROM orders AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "orders", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01629", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(code, salary, amount, id)\n schedules(level, type, status, id)\nTask: Select name from managers where level exists in schedules for the same code.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE level IN (\n SELECT level FROM schedules AS schd\n WHERE schd.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "schedules", "outer_alias": "mgr", "inner_alias": "schd", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01630", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(amount, code, name, id)\n categories(status, date, id, amount)\nTask: Retrieve value from customers with amount above the COUNT(value) of categories rows sharing the same level.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE amount > (\n SELECT COUNT(value) FROM categories AS catg\n WHERE catg.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "categories", "outer_alias": "cust", "inner_alias": "catg", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01631", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(amount, date, level, type)\n shipments(amount, status, value, level)\nTask: Retrieve name from regions with salary above the MIN(value) of shipments rows sharing the same id.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE salary > (\n SELECT MIN(value) FROM shipments AS shp\n WHERE shp.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "shipments", "outer_alias": "rgn", "inner_alias": "shp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01632", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(salary, amount, value, date)\n invoices(amount, id, level, value)\nTask: Retrieve value from staff that have at least one corresponding entry in invoices sharing the same status.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "invoices", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "value", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01633", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(salary, code, id, status)\n projects(amount, code, status, type)\nTask: Find id from transactions where level appears in projects entries with matching id.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01634", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(value, code, type, status)\n invoices(level, salary, type, amount)\nTask: Retrieve id from accounts that have at least one corresponding entry in invoices sharing the same code.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "invoices", "outer_alias": "acct", "inner_alias": "inv", "proj_col": "id", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01635", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(type, salary, value, status)\n orders(code, type, id, amount)\nTask: Retrieve value from requests whose type is found in orders rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE type IN (\n SELECT type FROM orders AS ord\n WHERE ord.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "orders", "outer_alias": "ordr", "inner_alias": "ord", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01636", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(salary, amount, name, id)\n regions(date, code, id, level)\nTask: Retrieve salary from departments that have at least one corresponding entry in regions sharing the same status.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "regions", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01637", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(value, code, id, status)\n products(status, code, amount, date)\nTask: Find amount from staff where code appears in products entries with matching id.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE code IN (\n SELECT code FROM products AS prod\n WHERE prod.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "products", "outer_alias": "empl", "inner_alias": "prod", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01638", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(level, amount, id, type)\n products(code, salary, type, status)\nTask: Retrieve amount from customers that have at least one corresponding entry in products sharing the same status.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "products", "outer_alias": "cust", "inner_alias": "prod", "proj_col": "amount", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01639", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(value, name, level, salary)\n employees(amount, date, status, type)\nTask: Retrieve salary from orders with value above the COUNT(amount) of employees rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE value > (\n SELECT COUNT(amount) FROM employees AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01640", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(salary, date, type, status)\n sales(salary, status, id, code)\nTask: Retrieve id from products with salary above the AVG(amount) of sales rows sharing the same status.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE salary > (\n SELECT AVG(amount) FROM sales AS sale\n WHERE sale.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "sales", "outer_alias": "prod", "inner_alias": "sale", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01641", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(name, salary, id, level)\n managers(name, code, id, value)\nTask: Retrieve name from staff that have at least one corresponding entry in managers sharing the same status.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "managers", "outer_alias": "empl", "inner_alias": "mgr", "proj_col": "name", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01642", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(salary, id, amount, type)\n accounts(level, value, name, amount)\nTask: Retrieve id from tasks whose type is found in accounts rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "accounts", "outer_alias": "tsk", "inner_alias": "acct", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01643", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(value, salary, code, level)\n items(value, code, amount, salary)\nTask: Retrieve id from requests whose status is found in items rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01644", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(name, date, amount, code)\n branches(code, status, id, level)\nTask: Retrieve amount from products that have at least one corresponding entry in branches sharing the same status.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "branches", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01645", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(date, code, level, amount)\n departments(type, level, amount, salary)\nTask: Retrieve code from customers that have at least one corresponding entry in departments sharing the same code.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "departments", "outer_alias": "cust", "inner_alias": "dept", "proj_col": "code", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01646", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(type, level, amount, salary)\n categories(salary, value, id, date)\nTask: Retrieve value from departments whose status is found in categories rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE status IN (\n SELECT status FROM categories AS catg\n WHERE catg.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "categories", "outer_alias": "dept", "inner_alias": "catg", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01647", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(type, id, salary, amount)\n shipments(salary, code, amount, id)\nTask: Find id from categories where salary exceeds the average salary from shipments for the same status.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE salary > (\n SELECT AVG(salary) FROM shipments AS shp\n WHERE shp.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "shipments", "outer_alias": "catg", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01648", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(code, status, amount, type)\n orders(level, date, type, salary)\nTask: Retrieve name from transactions whose code is found in orders rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM orders AS ord\n WHERE ord.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "orders", "outer_alias": "txn", "inner_alias": "ord", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01649", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(value, id, type, date)\n accounts(date, code, level, salary)\nTask: Retrieve amount from regions that have at least one corresponding entry in accounts sharing the same level.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "accounts", "outer_alias": "rgn", "inner_alias": "acct", "proj_col": "amount", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01650", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(amount, code, type, value)\n requests(value, date, salary, name)\nTask: Retrieve code from shipments whose code is found in requests rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "requests", "outer_alias": "shp", "inner_alias": "ordr", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01651", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(value, level, status, id)\n regions(type, name, amount, value)\nTask: Retrieve value from items that have at least one corresponding entry in regions sharing the same id.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "regions", "outer_alias": "lne", "inner_alias": "rgn", "proj_col": "value", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01652", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, status, code, type)\n invoices(date, status, type, level)\nTask: Find code from regions where salary exceeds the maximum amount from invoices for the same type.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE salary > (\n SELECT MAX(amount) FROM invoices AS inv\n WHERE inv.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "invoices", "outer_alias": "rgn", "inner_alias": "inv", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01653", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(name, amount, level, date)\n managers(type, level, id, amount)\nTask: Find id from employees where a matching record exists in managers with the same id.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01654", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(amount, value, date, type)\n managers(salary, id, code, status)\nTask: Find amount from customers where type appears in managers entries with matching id.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "managers", "outer_alias": "cust", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01655", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(status, value, type, name)\n invoices(name, value, code, level)\nTask: Find code from orders where a matching record exists in invoices with the same level.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "invoices", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01656", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(type, name, value, status)\n customers(amount, value, level, id)\nTask: Retrieve name from managers whose type is found in customers rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "customers", "outer_alias": "mgr", "inner_alias": "cust", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01657", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(level, value, salary, type)\n transactions(date, id, amount, code)\nTask: Select code from orders where id exists in transactions for the same code.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE id IN (\n SELECT id FROM transactions AS txn\n WHERE txn.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01658", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(amount, type, value, date)\n orders(code, name, salary, date)\nTask: Retrieve amount from categories that have at least one corresponding entry in orders sharing the same level.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "orders", "outer_alias": "catg", "inner_alias": "ord", "proj_col": "amount", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01659", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(amount, name, id, code)\n staff(level, value, status, code)\nTask: Retrieve name from products with salary above the SUM(amount) of staff rows sharing the same id.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE salary > (\n SELECT SUM(amount) FROM staff AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01660", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(amount, salary, code, level)\n items(date, id, name, salary)\nTask: Retrieve value from shipments with salary above the AVG(value) of items rows sharing the same code.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE salary > (\n SELECT AVG(value) FROM items AS lne\n WHERE lne.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "items", "outer_alias": "shp", "inner_alias": "lne", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01661", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(id, salary, name, date)\n branches(status, type, name, id)\nTask: Find code from employees where level appears in branches entries with matching code.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "branches", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01662", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(code, date, name, level)\n departments(status, salary, value, code)\nTask: Select value from requests where code exists in departments for the same code.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "departments", "outer_alias": "ordr", "inner_alias": "dept", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01663", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(date, amount, level, name)\n transactions(status, amount, level, date)\nTask: Retrieve name from staff that have at least one corresponding entry in transactions sharing the same status.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "transactions", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "name", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01664", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(id, level, code, type)\n tasks(name, id, status, level)\nTask: Select amount from invoices where level exists in tasks for the same type.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE level IN (\n SELECT level FROM tasks AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01665", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(type, name, date, code)\n categories(code, status, name, salary)\nTask: Retrieve id from projects with value above the SUM(amount) of categories rows sharing the same status.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE value > (\n SELECT SUM(amount) FROM categories AS catg\n WHERE catg.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "categories", "outer_alias": "prj", "inner_alias": "catg", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01666", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(name, date, type, salary)\n customers(type, amount, name, status)\nTask: Find value from items where a matching record exists in customers with the same id.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "customers", "outer_alias": "lne", "inner_alias": "cust", "proj_col": "value", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01667", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(type, amount, name, salary)\n managers(date, level, type, status)\nTask: Select code from requests where id exists in managers for the same type.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "managers", "outer_alias": "ordr", "inner_alias": "mgr", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01668", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(status, salary, code, amount)\n employees(value, salary, type, date)\nTask: Find id from products where amount exceeds the average value from employees for the same code.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE amount > (\n SELECT AVG(value) FROM employees AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "employees", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01669", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(id, type, status, date)\n sales(level, name, salary, date)\nTask: Select salary from managers where id exists in sales for the same status.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM sales AS sale\n WHERE sale.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "sales", "outer_alias": "mgr", "inner_alias": "sale", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01670", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(status, amount, code, id)\n tasks(id, amount, level, salary)\nTask: Select salary from regions where code exists in tasks for the same level.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM tasks AS tsk\n WHERE tsk.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "tasks", "outer_alias": "rgn", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01671", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(amount, code, date, level)\n categories(type, value, date, name)\nTask: Retrieve amount from employees with salary above the COUNT(amount) of categories rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE salary > (\n SELECT COUNT(amount) FROM categories AS catg\n WHERE catg.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "categories", "outer_alias": "emp", "inner_alias": "catg", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01672", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(name, date, value, status)\n transactions(value, date, level, salary)\nTask: Retrieve name from sales that have at least one corresponding entry in transactions sharing the same id.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "transactions", "outer_alias": "sale", "inner_alias": "txn", "proj_col": "name", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01673", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(code, date, name, level)\n products(id, date, level, code)\nTask: Select name from schedules where level exists in products for the same id.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "products", "outer_alias": "schd", "inner_alias": "prod", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01674", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(value, status, name, amount)\n requests(status, type, code, amount)\nTask: Find value from managers where a matching record exists in requests with the same level.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01675", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(value, amount, date, id)\n staff(salary, value, amount, date)\nTask: Find code from tasks where type appears in staff entries with matching status.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "staff", "outer_alias": "tsk", "inner_alias": "empl", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01676", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(id, status, date, salary)\n managers(status, id, salary, amount)\nTask: Retrieve name from schedules that have at least one corresponding entry in managers sharing the same level.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "name", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01677", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(type, value, status, id)\n projects(code, level, value, status)\nTask: Select value from requests where status exists in projects for the same code.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM projects AS prj\n WHERE prj.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "projects", "outer_alias": "ordr", "inner_alias": "prj", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01678", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(status, date, level, amount)\n orders(status, date, amount, type)\nTask: Find id from projects where a matching record exists in orders with the same code.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "id", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01679", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(amount, value, salary, id)\n accounts(value, name, code, type)\nTask: Retrieve amount from sales that have at least one corresponding entry in accounts sharing the same type.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "accounts", "outer_alias": "sale", "inner_alias": "acct", "proj_col": "amount", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01680", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(date, value, name, status)\n managers(id, salary, level, code)\nTask: Retrieve code from items with amount above the MAX(amount) of managers rows sharing the same type.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE amount > (\n SELECT MAX(amount) FROM managers AS mgr\n WHERE mgr.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "managers", "outer_alias": "lne", "inner_alias": "mgr", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01681", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(status, name, salary, level)\n requests(type, status, date, salary)\nTask: Retrieve salary from staff whose status is found in requests rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "requests", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01682", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(type, date, status, salary)\n requests(value, id, type, status)\nTask: Find code from customers where level appears in requests entries with matching code.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE level IN (\n SELECT level FROM requests AS ordr\n WHERE ordr.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "requests", "outer_alias": "cust", "inner_alias": "ordr", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01683", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(salary, code, value, date)\n accounts(value, date, level, amount)\nTask: Find name from orders where salary exceeds the minimum value from accounts for the same code.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE salary > (\n SELECT MIN(value) FROM accounts AS acct\n WHERE acct.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "accounts", "outer_alias": "ord", "inner_alias": "acct", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01684", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(amount, code, value, name)\n transactions(type, status, name, value)\nTask: Select amount from orders where level exists in transactions for the same type.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01685", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(value, amount, code, date)\n products(date, code, type, level)\nTask: Find name from schedules where amount exceeds the maximum amount from products for the same type.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE amount > (\n SELECT MAX(amount) FROM products AS prod\n WHERE prod.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "products", "outer_alias": "schd", "inner_alias": "prod", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01686", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(code, id, level, status)\n requests(id, status, value, date)\nTask: Retrieve value from managers that have at least one corresponding entry in requests sharing the same code.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01687", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(code, salary, id, value)\n schedules(type, id, level, name)\nTask: Retrieve amount from shipments with value above the MAX(value) of schedules rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE value > (\n SELECT MAX(value) FROM schedules AS schd\n WHERE schd.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "schedules", "outer_alias": "shp", "inner_alias": "schd", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01688", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(salary, status, value, level)\n requests(code, value, level, salary)\nTask: Retrieve name from branches whose id is found in requests rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE id IN (\n SELECT id FROM requests AS ordr\n WHERE ordr.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "requests", "outer_alias": "brc", "inner_alias": "ordr", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01689", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(id, level, salary, type)\n regions(name, date, value, salary)\nTask: Find name from employees where a matching record exists in regions with the same code.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "regions", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "name", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01690", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(status, date, type, salary)\n transactions(salary, date, code, amount)\nTask: Find code from branches where salary exceeds the total salary from transactions for the same code.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE salary > (\n SELECT SUM(salary) FROM transactions AS txn\n WHERE txn.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "transactions", "outer_alias": "brc", "inner_alias": "txn", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01691", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(level, value, date, type)\n schedules(name, date, id, level)\nTask: Find amount from branches where code appears in schedules entries with matching code.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE code IN (\n SELECT code FROM schedules AS schd\n WHERE schd.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "schedules", "outer_alias": "brc", "inner_alias": "schd", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01692", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(amount, type, id, value)\n shipments(status, code, date, amount)\nTask: Retrieve salary from invoices with amount above the COUNT(salary) of shipments rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM shipments AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01693", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(salary, date, type, amount)\n employees(value, date, name, amount)\nTask: Retrieve value from invoices that have at least one corresponding entry in employees sharing the same code.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "employees", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01694", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(amount, level, date, salary)\n sales(id, value, name, type)\nTask: Retrieve amount from departments that have at least one corresponding entry in sales sharing the same code.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "sales", "outer_alias": "dept", "inner_alias": "sale", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01695", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(date, amount, status, type)\n staff(level, status, type, code)\nTask: Find code from tasks where value exceeds the average amount from staff for the same code.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE value > (\n SELECT AVG(amount) FROM staff AS empl\n WHERE empl.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "staff", "outer_alias": "tsk", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01696", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(name, amount, date, code)\n branches(code, date, amount, name)\nTask: Find amount from accounts where a matching record exists in branches with the same id.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "branches", "outer_alias": "acct", "inner_alias": "brc", "proj_col": "amount", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01697", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(type, date, code, value)\n items(name, type, level, value)\nTask: Find name from accounts where a matching record exists in items with the same type.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "items", "outer_alias": "acct", "inner_alias": "lne", "proj_col": "name", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01698", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(code, value, id, status)\n items(date, id, salary, name)\nTask: Retrieve name from accounts that have at least one corresponding entry in items sharing the same level.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "items", "outer_alias": "acct", "inner_alias": "lne", "proj_col": "name", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01699", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(salary, name, id, type)\n products(id, type, salary, code)\nTask: Find value from employees where a matching record exists in products with the same id.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01700", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(type, value, date, amount)\n schedules(salary, name, id, level)\nTask: Retrieve value from employees with salary above the COUNT(value) of schedules rows sharing the same status.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE salary > (\n SELECT COUNT(value) FROM schedules AS schd\n WHERE schd.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "schedules", "outer_alias": "emp", "inner_alias": "schd", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01701", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(level, status, id, type)\n invoices(id, date, name, code)\nTask: Retrieve code from staff whose status is found in invoices rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE status IN (\n SELECT status FROM invoices AS inv\n WHERE inv.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "invoices", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01702", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(amount, level, type, id)\n branches(salary, status, type, id)\nTask: Find code from schedules where value exceeds the minimum salary from branches for the same status.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE value > (\n SELECT MIN(salary) FROM branches AS brc\n WHERE brc.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "branches", "outer_alias": "schd", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01703", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(status, amount, value, level)\n requests(amount, id, level, type)\nTask: Find name from schedules where a matching record exists in requests with the same level.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "requests", "outer_alias": "schd", "inner_alias": "ordr", "proj_col": "name", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01704", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(amount, value, id, date)\n sales(salary, value, date, name)\nTask: Find code from departments where a matching record exists in sales with the same level.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "sales", "outer_alias": "dept", "inner_alias": "sale", "proj_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01705", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(value, amount, id, type)\n requests(name, level, code, salary)\nTask: Find id from transactions where amount exceeds the minimum salary from requests for the same level.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE amount > (\n SELECT MIN(salary) FROM requests AS ordr\n WHERE ordr.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "requests", "outer_alias": "txn", "inner_alias": "ordr", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01706", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(value, date, status, type)\n products(id, level, amount, type)\nTask: Find code from invoices where value exceeds the total salary from products for the same status.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE value > (\n SELECT SUM(salary) FROM products AS prod\n WHERE prod.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "products", "outer_alias": "inv", "inner_alias": "prod", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01707", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(amount, id, salary, status)\n accounts(status, amount, date, salary)\nTask: Find value from schedules where salary exceeds the minimum value from accounts for the same level.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE salary > (\n SELECT MIN(value) FROM accounts AS acct\n WHERE acct.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "accounts", "outer_alias": "schd", "inner_alias": "acct", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01708", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(name, salary, id, value)\n projects(amount, name, id, type)\nTask: Find id from staff where a matching record exists in projects with the same id.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "projects", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01709", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(status, value, date, name)\n sales(type, amount, name, salary)\nTask: Retrieve value from departments that have at least one corresponding entry in sales sharing the same code.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "sales", "outer_alias": "dept", "inner_alias": "sale", "proj_col": "value", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01710", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(level, status, value, date)\n requests(type, name, date, level)\nTask: Select name from projects where status exists in requests for the same status.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01711", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(salary, name, type, value)\n orders(amount, status, salary, name)\nTask: Retrieve salary from accounts that have at least one corresponding entry in orders sharing the same id.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "orders", "outer_alias": "acct", "inner_alias": "ord", "proj_col": "salary", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01712", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(level, value, status, name)\n customers(code, name, status, type)\nTask: Find salary from shipments where type appears in customers entries with matching level.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01713", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(amount, code, id, status)\n staff(id, date, amount, code)\nTask: Retrieve code from items whose status is found in staff rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "staff", "outer_alias": "lne", "inner_alias": "empl", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01714", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(id, value, date, salary)\n orders(code, status, id, value)\nTask: Retrieve id from staff whose status is found in orders rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE status IN (\n SELECT status FROM orders AS ord\n WHERE ord.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "orders", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01715", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(level, status, type, id)\n shipments(id, status, name, salary)\nTask: Find amount from categories where a matching record exists in shipments with the same type.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "shipments", "outer_alias": "catg", "inner_alias": "shp", "proj_col": "amount", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01716", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(code, salary, level, status)\n regions(date, name, level, value)\nTask: Find amount from transactions where amount exceeds the minimum amount from regions for the same status.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE amount > (\n SELECT MIN(amount) FROM regions AS rgn\n WHERE rgn.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01717", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(code, salary, name, id)\n departments(amount, salary, id, name)\nTask: Retrieve name from accounts that have at least one corresponding entry in departments sharing the same id.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "departments", "outer_alias": "acct", "inner_alias": "dept", "proj_col": "name", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01718", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(level, type, salary, value)\n sales(code, id, level, date)\nTask: Find value from branches where level appears in sales entries with matching code.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE level IN (\n SELECT level FROM sales AS sale\n WHERE sale.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "sales", "outer_alias": "brc", "inner_alias": "sale", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01719", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(status, level, amount, code)\n accounts(amount, code, name, salary)\nTask: Retrieve value from staff that have at least one corresponding entry in accounts sharing the same id.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "accounts", "outer_alias": "empl", "inner_alias": "acct", "proj_col": "value", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01720", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(type, status, level, amount)\n employees(type, code, level, status)\nTask: Find name from managers where status appears in employees entries with matching status.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "employees", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01721", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(level, code, date, amount)\n managers(name, amount, code, date)\nTask: Retrieve name from schedules whose level is found in managers rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01722", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(amount, level, salary, date)\n departments(salary, name, level, id)\nTask: Find salary from categories where salary exceeds the average value from departments for the same id.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE salary > (\n SELECT AVG(value) FROM departments AS dept\n WHERE dept.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "departments", "outer_alias": "catg", "inner_alias": "dept", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01723", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, id, status, salary)\n shipments(amount, date, status, name)\nTask: Retrieve salary from regions with value above the COUNT(salary) of shipments rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE value > (\n SELECT COUNT(salary) FROM shipments AS shp\n WHERE shp.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "shipments", "outer_alias": "rgn", "inner_alias": "shp", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01724", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(salary, name, status, date)\n schedules(value, amount, status, name)\nTask: Find name from employees where amount exceeds the maximum amount from schedules for the same code.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE amount > (\n SELECT MAX(amount) FROM schedules AS schd\n WHERE schd.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "schedules", "outer_alias": "emp", "inner_alias": "schd", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01725", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(name, salary, type, status)\n transactions(type, name, date, level)\nTask: Retrieve amount from products whose code is found in transactions rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01726", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(code, salary, level, id)\n branches(code, value, salary, amount)\nTask: Find id from schedules where type appears in branches entries with matching code.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE type IN (\n SELECT type FROM branches AS brc\n WHERE brc.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "branches", "outer_alias": "schd", "inner_alias": "brc", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01727", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(status, salary, code, type)\n regions(salary, value, date, type)\nTask: Retrieve value from tasks whose id is found in regions rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "regions", "outer_alias": "tsk", "inner_alias": "rgn", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01728", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(id, status, salary, value)\n managers(salary, id, level, value)\nTask: Select id from employees where id exists in managers for the same level.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01729", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(id, amount, salary, type)\n regions(name, level, value, code)\nTask: Find salary from employees where a matching record exists in regions with the same status.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "regions", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "salary", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01730", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(code, value, date, type)\n categories(date, name, code, amount)\nTask: Find code from items where value exceeds the count of salary from categories for the same id.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE value > (\n SELECT COUNT(salary) FROM categories AS catg\n WHERE catg.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01731", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(name, type, level, status)\n branches(status, name, amount, code)\nTask: Select id from requests where level exists in branches for the same status.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "branches", "outer_alias": "ordr", "inner_alias": "brc", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01732", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(status, date, level, salary)\n accounts(id, amount, level, salary)\nTask: Find id from transactions where a matching record exists in accounts with the same type.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "accounts", "outer_alias": "txn", "inner_alias": "acct", "proj_col": "id", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01733", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(value, id, code, type)\n accounts(level, id, code, salary)\nTask: Find name from departments where value exceeds the total amount from accounts for the same code.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE value > (\n SELECT SUM(amount) FROM accounts AS acct\n WHERE acct.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "accounts", "outer_alias": "dept", "inner_alias": "acct", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01734", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(status, value, salary, amount)\n shipments(id, level, amount, code)\nTask: Find amount from branches where a matching record exists in shipments with the same code.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "shipments", "outer_alias": "brc", "inner_alias": "shp", "proj_col": "amount", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01735", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(status, name, code, value)\n branches(salary, type, status, value)\nTask: Retrieve name from products that have at least one corresponding entry in branches sharing the same id.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "branches", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01736", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(amount, value, salary, status)\n managers(salary, amount, id, name)\nTask: Retrieve value from items whose type is found in managers rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "managers", "outer_alias": "lne", "inner_alias": "mgr", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01737", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(level, type, name, code)\n regions(type, id, date, amount)\nTask: Find amount from tasks where a matching record exists in regions with the same id.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "regions", "outer_alias": "tsk", "inner_alias": "rgn", "proj_col": "amount", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01738", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(date, level, status, amount)\n shipments(level, code, date, status)\nTask: Find code from customers where value exceeds the minimum amount from shipments for the same id.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE value > (\n SELECT MIN(amount) FROM shipments AS shp\n WHERE shp.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "shipments", "outer_alias": "cust", "inner_alias": "shp", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01739", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(salary, value, level, id)\n categories(id, date, salary, type)\nTask: Find salary from transactions where id appears in categories entries with matching type.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "categories", "outer_alias": "txn", "inner_alias": "catg", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01740", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(value, status, id, salary)\n employees(salary, type, level, code)\nTask: Find id from accounts where amount exceeds the count of amount from employees for the same level.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE amount > (\n SELECT COUNT(amount) FROM employees AS emp\n WHERE emp.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "employees", "outer_alias": "acct", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01741", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(id, type, code, salary)\n categories(value, name, salary, code)\nTask: Find id from accounts where type appears in categories entries with matching id.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE type IN (\n SELECT type FROM categories AS catg\n WHERE catg.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "categories", "outer_alias": "acct", "inner_alias": "catg", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01742", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(salary, date, level, type)\n accounts(status, value, id, name)\nTask: Retrieve name from categories with value above the MAX(value) of accounts rows sharing the same level.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE value > (\n SELECT MAX(value) FROM accounts AS acct\n WHERE acct.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "accounts", "outer_alias": "catg", "inner_alias": "acct", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01743", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(level, date, type, value)\n schedules(level, id, amount, value)\nTask: Retrieve code from projects with amount above the SUM(amount) of schedules rows sharing the same id.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE amount > (\n SELECT SUM(amount) FROM schedules AS schd\n WHERE schd.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "schedules", "outer_alias": "prj", "inner_alias": "schd", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01744", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(level, code, id, date)\n shipments(status, date, amount, name)\nTask: Find value from tasks where value exceeds the count of salary from shipments for the same type.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE value > (\n SELECT COUNT(salary) FROM shipments AS shp\n WHERE shp.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "shipments", "outer_alias": "tsk", "inner_alias": "shp", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01745", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(level, id, value, date)\n staff(status, id, code, value)\nTask: Find id from shipments where a matching record exists in staff with the same status.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "staff", "outer_alias": "shp", "inner_alias": "empl", "proj_col": "id", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01746", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(name, id, code, date)\n customers(value, level, type, amount)\nTask: Find salary from tasks where id appears in customers entries with matching level.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE id IN (\n SELECT id FROM customers AS cust\n WHERE cust.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "customers", "outer_alias": "tsk", "inner_alias": "cust", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01747", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(status, amount, type, level)\n projects(level, id, value, code)\nTask: Find salary from tasks where level appears in projects entries with matching level.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "projects", "outer_alias": "tsk", "inner_alias": "prj", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01748", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(amount, date, id, name)\n departments(date, name, amount, id)\nTask: Retrieve id from tasks whose level is found in departments rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "departments", "outer_alias": "tsk", "inner_alias": "dept", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01749", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(status, name, salary, level)\n sales(status, level, date, code)\nTask: Find id from items where a matching record exists in sales with the same id.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "sales", "outer_alias": "lne", "inner_alias": "sale", "proj_col": "id", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01750", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(type, date, code, amount)\n projects(type, amount, value, level)\nTask: Retrieve amount from invoices whose code is found in projects rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "projects", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01751", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(level, name, id, value)\n branches(value, code, id, level)\nTask: Retrieve value from staff with amount above the MAX(amount) of branches rows sharing the same level.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE amount > (\n SELECT MAX(amount) FROM branches AS brc\n WHERE brc.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "branches", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01752", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(level, code, name, amount)\n shipments(code, date, id, name)\nTask: Retrieve id from managers with amount above the COUNT(salary) of shipments rows sharing the same level.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE amount > (\n SELECT COUNT(salary) FROM shipments AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "shipments", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01753", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(date, amount, level, name)\n invoices(amount, code, status, id)\nTask: Find amount from customers where code appears in invoices entries with matching level.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE code IN (\n SELECT code FROM invoices AS inv\n WHERE inv.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01754", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(amount, type, name, value)\n regions(date, name, code, id)\nTask: Retrieve value from invoices with amount above the COUNT(salary) of regions rows sharing the same id.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM regions AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "regions", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01755", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(amount, level, status, value)\n projects(level, value, salary, name)\nTask: Retrieve code from items that have at least one corresponding entry in projects sharing the same status.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "projects", "outer_alias": "lne", "inner_alias": "prj", "proj_col": "code", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01756", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(salary, code, level, id)\n branches(date, id, status, salary)\nTask: Select name from invoices where type exists in branches for the same type.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM branches AS brc\n WHERE brc.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "branches", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01757", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(name, level, status, date)\n regions(level, name, status, amount)\nTask: Find value from transactions where a matching record exists in regions with the same id.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "value", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01758", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(level, status, salary, type)\n items(name, value, type, amount)\nTask: Select name from orders where code exists in items for the same status.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE code IN (\n SELECT code FROM items AS lne\n WHERE lne.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01759", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(status, name, salary, date)\n branches(value, type, level, date)\nTask: Retrieve value from managers with salary above the SUM(amount) of branches rows sharing the same type.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE salary > (\n SELECT SUM(amount) FROM branches AS brc\n WHERE brc.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "branches", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01760", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, code, date, type)\n managers(type, salary, id, status)\nTask: Find name from regions where salary exceeds the count of amount from managers for the same status.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE salary > (\n SELECT COUNT(amount) FROM managers AS mgr\n WHERE mgr.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "managers", "outer_alias": "rgn", "inner_alias": "mgr", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01761", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(code, id, amount, level)\n employees(type, status, date, name)\nTask: Find code from managers where a matching record exists in employees with the same type.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "employees", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01762", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(value, code, status, salary)\n projects(status, level, id, salary)\nTask: Retrieve salary from schedules with amount above the SUM(value) of projects rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE amount > (\n SELECT SUM(value) FROM projects AS prj\n WHERE prj.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "projects", "outer_alias": "schd", "inner_alias": "prj", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01763", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(level, value, id, type)\n managers(date, id, code, level)\nTask: Retrieve id from items whose status is found in managers rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "managers", "outer_alias": "lne", "inner_alias": "mgr", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01764", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(code, date, salary, type)\n accounts(salary, id, code, amount)\nTask: Retrieve name from invoices whose id is found in accounts rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM accounts AS acct\n WHERE acct.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01765", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(amount, code, value, salary)\n requests(level, name, code, status)\nTask: Find code from orders where a matching record exists in requests with the same id.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "requests", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01766", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(id, date, salary, code)\n tasks(salary, date, type, amount)\nTask: Select name from sales where type exists in tasks for the same type.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "tasks", "outer_alias": "sale", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01767", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(type, value, id, level)\n categories(value, name, id, code)\nTask: Find value from branches where salary exceeds the count of amount from categories for the same status.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE salary > (\n SELECT COUNT(amount) FROM categories AS catg\n WHERE catg.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "categories", "outer_alias": "brc", "inner_alias": "catg", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01768", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(value, status, name, id)\n transactions(level, salary, date, status)\nTask: Find amount from customers where code appears in transactions entries with matching id.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "transactions", "outer_alias": "cust", "inner_alias": "txn", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01769", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(status, salary, id, name)\n sales(amount, name, type, level)\nTask: Retrieve name from orders whose level is found in sales rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE level IN (\n SELECT level FROM sales AS sale\n WHERE sale.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "sales", "outer_alias": "ord", "inner_alias": "sale", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01770", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(id, amount, date, value)\n departments(value, date, salary, name)\nTask: Find code from accounts where id appears in departments entries with matching type.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM departments AS dept\n WHERE dept.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "departments", "outer_alias": "acct", "inner_alias": "dept", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01771", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(salary, amount, type, code)\n staff(name, id, code, type)\nTask: Find name from accounts where amount exceeds the total amount from staff for the same level.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE amount > (\n SELECT SUM(amount) FROM staff AS empl\n WHERE empl.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01772", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(type, level, salary, amount)\n managers(value, level, status, date)\nTask: Retrieve code from sales with amount above the SUM(amount) of managers rows sharing the same code.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE amount > (\n SELECT SUM(amount) FROM managers AS mgr\n WHERE mgr.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01773", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(level, name, salary, type)\n departments(level, date, code, value)\nTask: Retrieve salary from regions that have at least one corresponding entry in departments sharing the same status.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "departments", "outer_alias": "rgn", "inner_alias": "dept", "proj_col": "salary", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01774", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(value, status, salary, amount)\n staff(salary, date, name, id)\nTask: Retrieve name from products that have at least one corresponding entry in staff sharing the same status.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01775", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(amount, id, code, salary)\n employees(amount, name, status, level)\nTask: Find salary from requests where amount exceeds the count of value from employees for the same id.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE amount > (\n SELECT COUNT(value) FROM employees AS emp\n WHERE emp.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "employees", "outer_alias": "ordr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01776", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(code, value, level, name)\n sales(name, id, code, value)\nTask: Retrieve name from shipments that have at least one corresponding entry in sales sharing the same type.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "sales", "outer_alias": "shp", "inner_alias": "sale", "proj_col": "name", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01777", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(salary, name, level, value)\n invoices(date, name, salary, type)\nTask: Retrieve id from transactions that have at least one corresponding entry in invoices sharing the same id.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "invoices", "outer_alias": "txn", "inner_alias": "inv", "proj_col": "id", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01778", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(level, salary, status, type)\n invoices(amount, status, type, name)\nTask: Retrieve value from transactions whose level is found in invoices rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM invoices AS inv\n WHERE inv.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "invoices", "outer_alias": "txn", "inner_alias": "inv", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01779", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(value, amount, level, type)\n regions(type, code, amount, salary)\nTask: Find amount from transactions where a matching record exists in regions with the same id.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "amount", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01780", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(value, level, salary, status)\n items(id, status, level, date)\nTask: Retrieve id from categories that have at least one corresponding entry in items sharing the same type.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "id", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01781", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(amount, value, level, salary)\n schedules(id, type, code, salary)\nTask: Retrieve code from customers with value above the COUNT(value) of schedules rows sharing the same code.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE value > (\n SELECT COUNT(value) FROM schedules AS schd\n WHERE schd.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "schedules", "outer_alias": "cust", "inner_alias": "schd", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01782", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(date, salary, amount, code)\n transactions(salary, date, type, code)\nTask: Find value from departments where level appears in transactions entries with matching code.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "transactions", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01783", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(status, code, type, name)\n branches(id, code, level, salary)\nTask: Retrieve name from transactions with amount above the MAX(salary) of branches rows sharing the same status.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE amount > (\n SELECT MAX(salary) FROM branches AS brc\n WHERE brc.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "branches", "outer_alias": "txn", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01784", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(type, id, value, status)\n customers(salary, amount, status, type)\nTask: Retrieve code from sales with value above the SUM(amount) of customers rows sharing the same level.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE value > (\n SELECT SUM(amount) FROM customers AS cust\n WHERE cust.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "customers", "outer_alias": "sale", "inner_alias": "cust", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01785", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(code, level, status, type)\n employees(type, salary, status, value)\nTask: Retrieve id from schedules whose code is found in employees rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01786", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(id, value, level, code)\n tasks(value, salary, date, name)\nTask: Retrieve value from departments with salary above the COUNT(salary) of tasks rows sharing the same status.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE salary > (\n SELECT COUNT(salary) FROM tasks AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01787", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(level, salary, date, name)\n sales(status, value, salary, level)\nTask: Find name from projects where a matching record exists in sales with the same id.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "sales", "outer_alias": "prj", "inner_alias": "sale", "proj_col": "name", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01788", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(amount, id, name, date)\n staff(id, date, level, salary)\nTask: Retrieve id from transactions that have at least one corresponding entry in staff sharing the same status.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "staff", "outer_alias": "txn", "inner_alias": "empl", "proj_col": "id", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01789", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(code, level, salary, value)\n requests(salary, id, amount, name)\nTask: Retrieve name from categories that have at least one corresponding entry in requests sharing the same type.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "requests", "outer_alias": "catg", "inner_alias": "ordr", "proj_col": "name", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01790", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(amount, name, level, id)\n products(name, amount, type, status)\nTask: Find salary from customers where salary exceeds the total salary from products for the same type.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE salary > (\n SELECT SUM(salary) FROM products AS prod\n WHERE prod.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "products", "outer_alias": "cust", "inner_alias": "prod", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01791", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(id, name, value, date)\n items(type, amount, level, value)\nTask: Find id from sales where value exceeds the count of amount from items for the same level.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE value > (\n SELECT COUNT(amount) FROM items AS lne\n WHERE lne.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "items", "outer_alias": "sale", "inner_alias": "lne", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01792", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(value, name, salary, level)\n requests(type, value, amount, id)\nTask: Retrieve value from employees whose type is found in requests rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "requests", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01793", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(name, code, salary, status)\n employees(date, id, amount, status)\nTask: Retrieve value from tasks with amount above the AVG(value) of employees rows sharing the same level.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE amount > (\n SELECT AVG(value) FROM employees AS emp\n WHERE emp.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "employees", "outer_alias": "tsk", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01794", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(type, level, date, name)\n branches(status, id, amount, level)\nTask: Retrieve amount from accounts with value above the SUM(value) of branches rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE value > (\n SELECT SUM(value) FROM branches AS brc\n WHERE brc.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "branches", "outer_alias": "acct", "inner_alias": "brc", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01795", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(code, date, name, amount)\n transactions(type, level, salary, status)\nTask: Retrieve id from schedules whose level is found in transactions rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "transactions", "outer_alias": "schd", "inner_alias": "txn", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01796", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(level, salary, code, id)\n regions(name, id, status, date)\nTask: Find id from departments where salary exceeds the average value from regions for the same level.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE salary > (\n SELECT AVG(value) FROM regions AS rgn\n WHERE rgn.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "regions", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01797", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(type, code, name, id)\n tasks(type, amount, name, level)\nTask: Retrieve salary from products that have at least one corresponding entry in tasks sharing the same level.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "tasks", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01798", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(status, id, code, name)\n accounts(salary, code, name, status)\nTask: Find salary from invoices where amount exceeds the average amount from accounts for the same status.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE amount > (\n SELECT AVG(amount) FROM accounts AS acct\n WHERE acct.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01799", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(amount, value, id, salary)\n projects(type, amount, name, salary)\nTask: Select salary from transactions where id exists in projects for the same code.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01800", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(name, status, salary, date)\n managers(code, amount, date, id)\nTask: Select id from tasks where id exists in managers for the same type.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "managers", "outer_alias": "tsk", "inner_alias": "mgr", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01801", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(status, level, code, name)\n branches(name, code, status, amount)\nTask: Retrieve value from customers whose status is found in branches rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "branches", "outer_alias": "cust", "inner_alias": "brc", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01802", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(amount, level, type, salary)\n accounts(code, level, date, value)\nTask: Find amount from projects where a matching record exists in accounts with the same id.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "accounts", "outer_alias": "prj", "inner_alias": "acct", "proj_col": "amount", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01803", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(date, amount, status, type)\n items(type, value, id, status)\nTask: Find code from invoices where code appears in items entries with matching id.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE code IN (\n SELECT code FROM items AS lne\n WHERE lne.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "items", "outer_alias": "inv", "inner_alias": "lne", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01804", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(amount, name, salary, code)\n managers(id, amount, level, name)\nTask: Retrieve amount from projects that have at least one corresponding entry in managers sharing the same type.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "managers", "outer_alias": "prj", "inner_alias": "mgr", "proj_col": "amount", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01805", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(id, level, code, amount)\n invoices(name, date, type, amount)\nTask: Select amount from tasks where type exists in invoices for the same type.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "invoices", "outer_alias": "tsk", "inner_alias": "inv", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01806", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(value, salary, code, amount)\n branches(date, type, code, status)\nTask: Find amount from staff where level appears in branches entries with matching level.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "branches", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01807", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(salary, type, level, id)\n transactions(date, code, salary, name)\nTask: Retrieve id from accounts that have at least one corresponding entry in transactions sharing the same level.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "transactions", "outer_alias": "acct", "inner_alias": "txn", "proj_col": "id", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01808", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(amount, name, date, salary)\n schedules(amount, id, status, name)\nTask: Find amount from customers where a matching record exists in schedules with the same level.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "schedules", "outer_alias": "cust", "inner_alias": "schd", "proj_col": "amount", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01809", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(value, salary, id, code)\n staff(amount, type, value, level)\nTask: Find salary from projects where value exceeds the maximum amount from staff for the same code.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE value > (\n SELECT MAX(amount) FROM staff AS empl\n WHERE empl.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "staff", "outer_alias": "prj", "inner_alias": "empl", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01810", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(type, salary, name, value)\n schedules(name, date, id, value)\nTask: Select name from sales where status exists in schedules for the same id.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE status IN (\n SELECT status FROM schedules AS schd\n WHERE schd.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "schedules", "outer_alias": "sale", "inner_alias": "schd", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01811", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(date, type, status, name)\n managers(date, name, value, type)\nTask: Retrieve code from orders whose id is found in managers rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "managers", "outer_alias": "ord", "inner_alias": "mgr", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01812", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(amount, code, salary, value)\n accounts(code, type, level, status)\nTask: Select salary from schedules where level exists in accounts for the same id.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM accounts AS acct\n WHERE acct.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "accounts", "outer_alias": "schd", "inner_alias": "acct", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01813", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(amount, type, salary, id)\n employees(salary, date, amount, value)\nTask: Retrieve amount from staff with amount above the SUM(salary) of employees rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE amount > (\n SELECT SUM(salary) FROM employees AS emp\n WHERE emp.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01814", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(salary, value, code, id)\n departments(level, name, type, id)\nTask: Retrieve id from staff with salary above the MAX(value) of departments rows sharing the same status.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE salary > (\n SELECT MAX(value) FROM departments AS dept\n WHERE dept.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "departments", "outer_alias": "empl", "inner_alias": "dept", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01815", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(name, status, salary, level)\n sales(id, type, value, date)\nTask: Find value from customers where salary exceeds the maximum salary from sales for the same level.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE salary > (\n SELECT MAX(salary) FROM sales AS sale\n WHERE sale.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "sales", "outer_alias": "cust", "inner_alias": "sale", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01816", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(type, date, amount, value)\n staff(status, amount, date, name)\nTask: Find code from departments where type appears in staff entries with matching id.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01817", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(salary, value, level, date)\n shipments(name, level, value, date)\nTask: Find id from customers where a matching record exists in shipments with the same type.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "shipments", "outer_alias": "cust", "inner_alias": "shp", "proj_col": "id", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01818", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(level, status, value, amount)\n employees(type, value, date, salary)\nTask: Retrieve id from staff that have at least one corresponding entry in employees sharing the same level.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01819", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(value, level, salary, id)\n categories(level, salary, amount, id)\nTask: Retrieve id from managers whose id is found in categories rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "categories", "outer_alias": "mgr", "inner_alias": "catg", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01820", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(value, id, date, type)\n sales(name, value, amount, type)\nTask: Find name from branches where a matching record exists in sales with the same level.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "sales", "outer_alias": "brc", "inner_alias": "sale", "proj_col": "name", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01821", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(name, id, type, amount)\n requests(value, level, salary, date)\nTask: Retrieve name from managers whose type is found in requests rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01822", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(amount, level, salary, date)\n managers(amount, type, id, code)\nTask: Retrieve name from employees that have at least one corresponding entry in managers sharing the same level.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "name", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01823", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(level, amount, salary, id)\n schedules(amount, code, date, name)\nTask: Retrieve id from branches with amount above the COUNT(amount) of schedules rows sharing the same status.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE amount > (\n SELECT COUNT(amount) FROM schedules AS schd\n WHERE schd.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "schedules", "outer_alias": "brc", "inner_alias": "schd", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01824", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(date, amount, salary, level)\n departments(value, amount, status, level)\nTask: Find name from staff where type appears in departments entries with matching id.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE type IN (\n SELECT type FROM departments AS dept\n WHERE dept.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "departments", "outer_alias": "empl", "inner_alias": "dept", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01825", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(name, value, date, type)\n managers(type, amount, level, status)\nTask: Retrieve amount from invoices with salary above the MAX(amount) of managers rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE salary > (\n SELECT MAX(amount) FROM managers AS mgr\n WHERE mgr.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "managers", "outer_alias": "inv", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01826", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(type, name, code, status)\n transactions(amount, salary, code, status)\nTask: Retrieve name from branches that have at least one corresponding entry in transactions sharing the same type.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "transactions", "outer_alias": "brc", "inner_alias": "txn", "proj_col": "name", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01827", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(name, code, amount, date)\n staff(code, level, amount, type)\nTask: Find name from accounts where status appears in staff entries with matching status.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01828", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(level, code, type, value)\n branches(status, id, name, value)\nTask: Retrieve amount from requests whose status is found in branches rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "branches", "outer_alias": "ordr", "inner_alias": "brc", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01829", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(date, salary, level, name)\n departments(amount, type, code, value)\nTask: Select code from projects where type exists in departments for the same status.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE type IN (\n SELECT type FROM departments AS dept\n WHERE dept.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "departments", "outer_alias": "prj", "inner_alias": "dept", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01830", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(name, level, date, id)\n accounts(status, date, type, code)\nTask: Find salary from requests where salary exceeds the total value from accounts for the same status.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE salary > (\n SELECT SUM(value) FROM accounts AS acct\n WHERE acct.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "accounts", "outer_alias": "ordr", "inner_alias": "acct", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01831", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(id, name, salary, value)\n branches(name, amount, level, value)\nTask: Retrieve amount from employees whose type is found in branches rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE type IN (\n SELECT type FROM branches AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "branches", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01832", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(type, date, level, name)\n tasks(value, date, type, level)\nTask: Retrieve name from shipments that have at least one corresponding entry in tasks sharing the same status.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "name", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01833", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(status, amount, salary, value)\n transactions(level, code, amount, id)\nTask: Retrieve code from managers with value above the SUM(value) of transactions rows sharing the same status.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE value > (\n SELECT SUM(value) FROM transactions AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "transactions", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01834", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(value, amount, level, date)\n requests(status, value, code, salary)\nTask: Find salary from products where a matching record exists in requests with the same id.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "requests", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01835", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(status, level, name, value)\n staff(amount, value, date, name)\nTask: Find name from employees where salary exceeds the minimum value from staff for the same status.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE salary > (\n SELECT MIN(value) FROM staff AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "staff", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01836", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(value, code, type, amount)\n shipments(name, value, amount, code)\nTask: Find value from regions where code appears in shipments entries with matching level.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "shipments", "outer_alias": "rgn", "inner_alias": "shp", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01837", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(level, id, salary, status)\n branches(amount, value, level, name)\nTask: Find value from managers where a matching record exists in branches with the same code.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "branches", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01838", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(id, salary, level, type)\n staff(id, value, code, date)\nTask: Find code from departments where a matching record exists in staff with the same type.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01839", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(type, status, code, level)\n staff(type, id, level, code)\nTask: Select value from departments where level exists in staff for the same id.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01840", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(status, date, value, code)\n sales(value, date, name, code)\nTask: Retrieve value from departments with salary above the AVG(salary) of sales rows sharing the same status.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE salary > (\n SELECT AVG(salary) FROM sales AS sale\n WHERE sale.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "sales", "outer_alias": "dept", "inner_alias": "sale", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01841", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(salary, value, status, level)\n orders(salary, value, type, amount)\nTask: Select code from shipments where status exists in orders for the same code.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE status IN (\n SELECT status FROM orders AS ord\n WHERE ord.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "orders", "outer_alias": "shp", "inner_alias": "ord", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01842", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(name, code, value, amount)\n invoices(amount, value, id, salary)\nTask: Retrieve code from employees with amount above the COUNT(amount) of invoices rows sharing the same code.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM invoices AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01843", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(level, value, code, salary)\n categories(status, amount, code, type)\nTask: Find salary from branches where value exceeds the maximum amount from categories for the same status.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE value > (\n SELECT MAX(amount) FROM categories AS catg\n WHERE catg.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "categories", "outer_alias": "brc", "inner_alias": "catg", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01844", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(status, salary, date, id)\n invoices(amount, code, status, value)\nTask: Find value from branches where value exceeds the count of salary from invoices for the same level.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE value > (\n SELECT COUNT(salary) FROM invoices AS inv\n WHERE inv.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "invoices", "outer_alias": "brc", "inner_alias": "inv", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01845", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(code, amount, type, id)\n categories(value, amount, id, name)\nTask: Retrieve salary from regions that have at least one corresponding entry in categories sharing the same level.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "categories", "outer_alias": "rgn", "inner_alias": "catg", "proj_col": "salary", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01846", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(status, name, salary, type)\n projects(status, id, date, salary)\nTask: Find amount from orders where amount exceeds the minimum amount from projects for the same code.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE amount > (\n SELECT MIN(amount) FROM projects AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "projects", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01847", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(value, code, amount, status)\n categories(amount, salary, code, date)\nTask: Find id from managers where a matching record exists in categories with the same status.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "categories", "outer_alias": "mgr", "inner_alias": "catg", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01848", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(name, amount, salary, status)\n branches(id, code, status, date)\nTask: Retrieve code from schedules with value above the COUNT(amount) of branches rows sharing the same level.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE value > (\n SELECT COUNT(amount) FROM branches AS brc\n WHERE brc.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "branches", "outer_alias": "schd", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01849", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(salary, type, amount, status)\n items(name, code, value, level)\nTask: Select id from regions where type exists in items for the same status.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "items", "outer_alias": "rgn", "inner_alias": "lne", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01850", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(name, code, status, amount)\n projects(level, status, id, date)\nTask: Retrieve code from transactions with amount above the MIN(amount) of projects rows sharing the same id.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE amount > (\n SELECT MIN(amount) FROM projects AS prj\n WHERE prj.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01851", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(name, type, status, id)\n shipments(id, status, level, date)\nTask: Retrieve value from sales that have at least one corresponding entry in shipments sharing the same code.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "shipments", "outer_alias": "sale", "inner_alias": "shp", "proj_col": "value", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01852", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(status, type, id, name)\n invoices(id, salary, amount, level)\nTask: Find code from orders where a matching record exists in invoices with the same type.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "invoices", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01853", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(salary, name, type, code)\n branches(type, id, date, status)\nTask: Retrieve name from requests whose id is found in branches rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE id IN (\n SELECT id FROM branches AS brc\n WHERE brc.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "branches", "outer_alias": "ordr", "inner_alias": "brc", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01854", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(salary, status, date, amount)\n employees(value, level, date, salary)\nTask: Retrieve salary from shipments with value above the SUM(salary) of employees rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE value > (\n SELECT SUM(salary) FROM employees AS emp\n WHERE emp.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "employees", "outer_alias": "shp", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01855", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(level, value, code, date)\n regions(date, type, name, level)\nTask: Find id from staff where a matching record exists in regions with the same type.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "regions", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01856", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, status, amount, name)\n invoices(id, name, status, code)\nTask: Retrieve name from regions with salary above the COUNT(value) of invoices rows sharing the same level.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE salary > (\n SELECT COUNT(value) FROM invoices AS inv\n WHERE inv.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "invoices", "outer_alias": "rgn", "inner_alias": "inv", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01857", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(name, salary, code, status)\n branches(code, salary, status, level)\nTask: Retrieve id from managers whose level is found in branches rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "branches", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01858", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(salary, type, status, level)\n products(amount, date, type, id)\nTask: Retrieve name from managers with amount above the AVG(salary) of products rows sharing the same status.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE amount > (\n SELECT AVG(salary) FROM products AS prod\n WHERE prod.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01859", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(id, date, name, value)\n departments(level, code, id, date)\nTask: Retrieve name from categories that have at least one corresponding entry in departments sharing the same code.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "departments", "outer_alias": "catg", "inner_alias": "dept", "proj_col": "name", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01860", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(date, code, level, amount)\n projects(value, code, type, amount)\nTask: Find amount from managers where a matching record exists in projects with the same status.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "projects", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "amount", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01861", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(code, id, type, status)\n projects(code, date, value, level)\nTask: Retrieve code from branches that have at least one corresponding entry in projects sharing the same id.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "projects", "outer_alias": "brc", "inner_alias": "prj", "proj_col": "code", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01862", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(type, level, id, date)\n shipments(level, type, id, code)\nTask: Retrieve salary from requests that have at least one corresponding entry in shipments sharing the same level.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "shipments", "outer_alias": "ordr", "inner_alias": "shp", "proj_col": "salary", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01863", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(amount, type, name, id)\n staff(id, status, date, salary)\nTask: Retrieve id from sales that have at least one corresponding entry in staff sharing the same id.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "staff", "outer_alias": "sale", "inner_alias": "empl", "proj_col": "id", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01864", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(value, amount, level, id)\n branches(amount, salary, code, status)\nTask: Find value from items where level appears in branches entries with matching level.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01865", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(value, name, salary, date)\n categories(amount, level, date, salary)\nTask: Retrieve name from schedules whose status is found in categories rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE status IN (\n SELECT status FROM categories AS catg\n WHERE catg.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "categories", "outer_alias": "schd", "inner_alias": "catg", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01866", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(level, date, status, salary)\n requests(salary, code, level, date)\nTask: Find amount from invoices where a matching record exists in requests with the same id.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "requests", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "amount", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01867", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(amount, level, salary, type)\n employees(level, status, value, date)\nTask: Find code from customers where amount exceeds the minimum salary from employees for the same status.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE amount > (\n SELECT MIN(salary) FROM employees AS emp\n WHERE emp.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01868", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(value, code, amount, type)\n tasks(value, amount, level, name)\nTask: Select code from branches where id exists in tasks for the same level.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE id IN (\n SELECT id FROM tasks AS tsk\n WHERE tsk.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01869", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(id, type, value, date)\n customers(name, status, amount, code)\nTask: Find code from requests where status appears in customers entries with matching level.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM customers AS cust\n WHERE cust.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "customers", "outer_alias": "ordr", "inner_alias": "cust", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01870", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(name, id, level, type)\n products(date, value, salary, level)\nTask: Find id from employees where status appears in products entries with matching level.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01871", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(code, amount, type, status)\n regions(code, amount, date, name)\nTask: Retrieve amount from accounts that have at least one corresponding entry in regions sharing the same level.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "regions", "outer_alias": "acct", "inner_alias": "rgn", "proj_col": "amount", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01872", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(value, date, type, name)\n items(status, amount, name, code)\nTask: Find code from employees where a matching record exists in items with the same level.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "items", "outer_alias": "emp", "inner_alias": "lne", "proj_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01873", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(id, salary, level, name)\n projects(name, salary, level, date)\nTask: Retrieve amount from departments whose type is found in projects rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE type IN (\n SELECT type FROM projects AS prj\n WHERE prj.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "projects", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01874", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(code, value, name, level)\n invoices(type, level, id, status)\nTask: Retrieve amount from requests with salary above the MIN(amount) of invoices rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE salary > (\n SELECT MIN(amount) FROM invoices AS inv\n WHERE inv.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "invoices", "outer_alias": "ordr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01875", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(type, code, amount, value)\n sales(value, code, status, date)\nTask: Find name from staff where code appears in sales entries with matching level.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE code IN (\n SELECT code FROM sales AS sale\n WHERE sale.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "sales", "outer_alias": "empl", "inner_alias": "sale", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01876", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(code, amount, value, status)\n requests(type, level, salary, status)\nTask: Find salary from items where a matching record exists in requests with the same id.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "requests", "outer_alias": "lne", "inner_alias": "ordr", "proj_col": "salary", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01877", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(value, amount, status, date)\n transactions(date, amount, id, type)\nTask: Find amount from regions where level appears in transactions entries with matching status.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "transactions", "outer_alias": "rgn", "inner_alias": "txn", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01878", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(code, status, name, level)\n products(date, id, amount, status)\nTask: Find amount from employees where id appears in products entries with matching status.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01879", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(code, id, status, level)\n tasks(id, level, status, amount)\nTask: Find salary from invoices where a matching record exists in tasks with the same level.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "salary", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01880", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(id, name, type, salary)\n employees(code, salary, value, type)\nTask: Find value from departments where salary exceeds the average salary from employees for the same type.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE salary > (\n SELECT AVG(salary) FROM employees AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "employees", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01881", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(level, amount, date, name)\n regions(value, status, level, salary)\nTask: Find amount from categories where level appears in regions entries with matching id.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01882", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(level, code, value, date)\n managers(id, name, value, type)\nTask: Retrieve id from transactions whose type is found in managers rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "managers", "outer_alias": "txn", "inner_alias": "mgr", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01883", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(status, level, type, id)\n transactions(date, salary, status, value)\nTask: Find id from schedules where salary exceeds the count of salary from transactions for the same code.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE salary > (\n SELECT COUNT(salary) FROM transactions AS txn\n WHERE txn.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "transactions", "outer_alias": "schd", "inner_alias": "txn", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01884", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(date, amount, code, value)\n departments(amount, name, code, type)\nTask: Retrieve value from accounts that have at least one corresponding entry in departments sharing the same status.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "departments", "outer_alias": "acct", "inner_alias": "dept", "proj_col": "value", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01885", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(type, id, salary, amount)\n employees(level, type, code, date)\nTask: Find value from staff where value exceeds the total salary from employees for the same type.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE value > (\n SELECT SUM(salary) FROM employees AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01886", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(name, status, amount, id)\n orders(status, type, level, code)\nTask: Retrieve code from customers whose id is found in orders rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE id IN (\n SELECT id FROM orders AS ord\n WHERE ord.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "orders", "outer_alias": "cust", "inner_alias": "ord", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01887", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(amount, value, date, id)\n transactions(salary, amount, name, value)\nTask: Retrieve value from items with value above the MIN(salary) of transactions rows sharing the same type.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE value > (\n SELECT MIN(salary) FROM transactions AS txn\n WHERE txn.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "transactions", "outer_alias": "lne", "inner_alias": "txn", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01888", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(level, id, status, value)\n employees(status, amount, date, name)\nTask: Find name from customers where level appears in employees entries with matching code.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01889", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(amount, salary, id, code)\n customers(code, amount, type, name)\nTask: Select value from tasks where type exists in customers for the same id.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "customers", "outer_alias": "tsk", "inner_alias": "cust", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01890", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(status, type, value, amount)\n sales(code, name, salary, status)\nTask: Select name from accounts where level exists in sales for the same type.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM sales AS sale\n WHERE sale.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "sales", "outer_alias": "acct", "inner_alias": "sale", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01891", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(salary, value, type, level)\n categories(name, status, type, id)\nTask: Find id from products where id appears in categories entries with matching status.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "categories", "outer_alias": "prod", "inner_alias": "catg", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01892", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(salary, name, type, level)\n branches(status, type, level, date)\nTask: Retrieve name from shipments whose type is found in branches rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM branches AS brc\n WHERE brc.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "branches", "outer_alias": "shp", "inner_alias": "brc", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01893", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(status, code, id, type)\n invoices(amount, salary, date, value)\nTask: Retrieve salary from managers that have at least one corresponding entry in invoices sharing the same status.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "invoices", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01894", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(code, level, name, status)\n requests(amount, code, name, status)\nTask: Find value from regions where code appears in requests entries with matching code.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "requests", "outer_alias": "rgn", "inner_alias": "ordr", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01895", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(date, id, code, amount)\n invoices(salary, type, amount, code)\nTask: Retrieve value from shipments whose type is found in invoices rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "invoices", "outer_alias": "shp", "inner_alias": "inv", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01896", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(salary, status, name, amount)\n regions(name, type, value, status)\nTask: Retrieve salary from projects that have at least one corresponding entry in regions sharing the same level.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "regions", "outer_alias": "prj", "inner_alias": "rgn", "proj_col": "salary", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01897", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(date, name, value, code)\n categories(code, date, id, salary)\nTask: Retrieve value from customers with salary above the COUNT(value) of categories rows sharing the same level.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE salary > (\n SELECT COUNT(value) FROM categories AS catg\n WHERE catg.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "categories", "outer_alias": "cust", "inner_alias": "catg", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01898", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(status, value, salary, id)\n accounts(code, status, id, salary)\nTask: Retrieve value from branches that have at least one corresponding entry in accounts sharing the same status.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "accounts", "outer_alias": "brc", "inner_alias": "acct", "proj_col": "value", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01899", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(amount, date, status, name)\n products(amount, salary, value, status)\nTask: Retrieve name from transactions with amount above the SUM(salary) of products rows sharing the same type.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE amount > (\n SELECT SUM(salary) FROM products AS prod\n WHERE prod.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01900", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(salary, amount, date, value)\n regions(name, code, value, status)\nTask: Retrieve id from items that have at least one corresponding entry in regions sharing the same code.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "regions", "outer_alias": "lne", "inner_alias": "rgn", "proj_col": "id", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01901", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(type, salary, level, value)\n departments(value, amount, type, status)\nTask: Find code from orders where amount exceeds the average amount from departments for the same id.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE amount > (\n SELECT AVG(amount) FROM departments AS dept\n WHERE dept.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "departments", "outer_alias": "ord", "inner_alias": "dept", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01902", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(date, type, amount, name)\n products(salary, name, amount, id)\nTask: Retrieve code from branches whose level is found in products rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "products", "outer_alias": "brc", "inner_alias": "prod", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01903", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(salary, status, amount, level)\n invoices(status, amount, salary, id)\nTask: Find id from customers where salary exceeds the total salary from invoices for the same id.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE salary > (\n SELECT SUM(salary) FROM invoices AS inv\n WHERE inv.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01904", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, type, date, value)\n invoices(type, id, amount, date)\nTask: Select name from shipments where type exists in invoices for the same status.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "invoices", "outer_alias": "shp", "inner_alias": "inv", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01905", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(value, name, status, salary)\n shipments(id, value, amount, name)\nTask: Retrieve code from regions that have at least one corresponding entry in shipments sharing the same status.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "shipments", "outer_alias": "rgn", "inner_alias": "shp", "proj_col": "code", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01906", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, salary, code, date)\n managers(level, amount, name, value)\nTask: Find id from regions where value exceeds the average value from managers for the same type.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE value > (\n SELECT AVG(value) FROM managers AS mgr\n WHERE mgr.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "managers", "outer_alias": "rgn", "inner_alias": "mgr", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01907", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(date, value, code, name)\n items(name, salary, level, code)\nTask: Retrieve code from employees that have at least one corresponding entry in items sharing the same code.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "items", "outer_alias": "emp", "inner_alias": "lne", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01908", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(date, amount, status, type)\n schedules(name, id, amount, salary)\nTask: Find salary from invoices where amount exceeds the maximum value from schedules for the same id.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE amount > (\n SELECT MAX(value) FROM schedules AS schd\n WHERE schd.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01909", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(level, id, code, type)\n departments(status, name, value, code)\nTask: Retrieve salary from transactions with salary above the MIN(amount) of departments rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE salary > (\n SELECT MIN(amount) FROM departments AS dept\n WHERE dept.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "departments", "outer_alias": "txn", "inner_alias": "dept", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01910", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(status, salary, code, id)\n categories(amount, name, value, type)\nTask: Select name from items where code exists in categories for the same status.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE code IN (\n SELECT code FROM categories AS catg\n WHERE catg.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01911", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(name, level, date, code)\n employees(name, salary, id, date)\nTask: Select code from categories where code exists in employees for the same id.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "employees", "outer_alias": "catg", "inner_alias": "emp", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01912", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(level, value, name, type)\n orders(value, amount, level, type)\nTask: Retrieve name from requests with salary above the MIN(salary) of orders rows sharing the same status.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE salary > (\n SELECT MIN(salary) FROM orders AS ord\n WHERE ord.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "orders", "outer_alias": "ordr", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01913", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(code, value, name, id)\n items(code, value, amount, name)\nTask: Find code from regions where salary exceeds the maximum value from items for the same status.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE salary > (\n SELECT MAX(value) FROM items AS lne\n WHERE lne.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "items", "outer_alias": "rgn", "inner_alias": "lne", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01914", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(status, value, id, type)\n departments(status, value, code, name)\nTask: Retrieve value from staff that have at least one corresponding entry in departments sharing the same code.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "departments", "outer_alias": "empl", "inner_alias": "dept", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01915", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(name, amount, date, status)\n managers(date, type, salary, value)\nTask: Find amount from products where salary exceeds the minimum salary from managers for the same level.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE salary > (\n SELECT MIN(salary) FROM managers AS mgr\n WHERE mgr.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "managers", "outer_alias": "prod", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01916", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(salary, amount, value, type)\n items(amount, date, status, id)\nTask: Retrieve id from shipments with amount above the SUM(amount) of items rows sharing the same level.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE amount > (\n SELECT SUM(amount) FROM items AS lne\n WHERE lne.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "items", "outer_alias": "shp", "inner_alias": "lne", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01917", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(value, code, type, level)\n managers(code, type, date, status)\nTask: Retrieve id from regions that have at least one corresponding entry in managers sharing the same id.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "managers", "outer_alias": "rgn", "inner_alias": "mgr", "proj_col": "id", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01918", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(value, id, status, salary)\n tasks(date, id, value, type)\nTask: Retrieve amount from invoices that have at least one corresponding entry in tasks sharing the same status.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "amount", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01919", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(type, amount, id, level)\n departments(status, code, level, salary)\nTask: Find code from staff where a matching record exists in departments with the same code.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "departments", "outer_alias": "empl", "inner_alias": "dept", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01920", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(id, status, amount, name)\n tasks(id, date, salary, amount)\nTask: Retrieve name from customers with salary above the AVG(amount) of tasks rows sharing the same code.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE salary > (\n SELECT AVG(amount) FROM tasks AS tsk\n WHERE tsk.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "tasks", "outer_alias": "cust", "inner_alias": "tsk", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01921", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(id, status, type, date)\n branches(status, date, type, amount)\nTask: Retrieve salary from tasks that have at least one corresponding entry in branches sharing the same id.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "branches", "outer_alias": "tsk", "inner_alias": "brc", "proj_col": "salary", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01922", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(amount, name, value, salary)\n staff(value, type, status, amount)\nTask: Find value from orders where id appears in staff entries with matching type.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE id IN (\n SELECT id FROM staff AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "staff", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01923", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(amount, name, value, date)\n transactions(date, value, id, amount)\nTask: Retrieve salary from schedules that have at least one corresponding entry in transactions sharing the same id.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "transactions", "outer_alias": "schd", "inner_alias": "txn", "proj_col": "salary", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01924", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(salary, code, id, amount)\n schedules(code, value, id, salary)\nTask: Find code from sales where salary exceeds the minimum value from schedules for the same status.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE salary > (\n SELECT MIN(value) FROM schedules AS schd\n WHERE schd.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "schedules", "outer_alias": "sale", "inner_alias": "schd", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01925", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(name, salary, value, status)\n regions(status, date, salary, amount)\nTask: Retrieve salary from shipments that have at least one corresponding entry in regions sharing the same status.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "regions", "outer_alias": "shp", "inner_alias": "rgn", "proj_col": "salary", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01926", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(level, name, salary, id)\n regions(date, level, salary, id)\nTask: Find code from products where amount exceeds the average value from regions for the same code.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE amount > (\n SELECT AVG(value) FROM regions AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01927", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(id, type, level, name)\n managers(date, amount, salary, name)\nTask: Retrieve salary from customers with amount above the COUNT(amount) of managers rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE amount > (\n SELECT COUNT(amount) FROM managers AS mgr\n WHERE mgr.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "managers", "outer_alias": "cust", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01928", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(code, status, level, amount)\n invoices(level, amount, status, code)\nTask: Find amount from orders where status appears in invoices entries with matching level.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE status IN (\n SELECT status FROM invoices AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "invoices", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01929", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(status, value, code, amount)\n customers(name, id, level, date)\nTask: Retrieve id from staff with value above the AVG(salary) of customers rows sharing the same id.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE value > (\n SELECT AVG(salary) FROM customers AS cust\n WHERE cust.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "customers", "outer_alias": "empl", "inner_alias": "cust", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01930", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(level, name, amount, value)\n accounts(amount, type, date, id)\nTask: Find salary from sales where value exceeds the total salary from accounts for the same code.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE value > (\n SELECT SUM(salary) FROM accounts AS acct\n WHERE acct.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "accounts", "outer_alias": "sale", "inner_alias": "acct", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01931", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(code, level, name, value)\n categories(salary, status, level, value)\nTask: Retrieve code from transactions whose code is found in categories rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM categories AS catg\n WHERE catg.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "categories", "outer_alias": "txn", "inner_alias": "catg", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01932", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(amount, id, level, code)\n accounts(salary, name, type, amount)\nTask: Find value from employees where amount exceeds the count of amount from accounts for the same code.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM accounts AS acct\n WHERE acct.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "accounts", "outer_alias": "emp", "inner_alias": "acct", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01933", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(salary, amount, value, status)\n projects(status, value, name, code)\nTask: Retrieve name from tasks that have at least one corresponding entry in projects sharing the same type.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "projects", "outer_alias": "tsk", "inner_alias": "prj", "proj_col": "name", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01934", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(name, salary, id, type)\n invoices(amount, code, level, date)\nTask: Retrieve id from projects that have at least one corresponding entry in invoices sharing the same type.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "invoices", "outer_alias": "prj", "inner_alias": "inv", "proj_col": "id", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01935", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(value, code, amount, id)\n departments(name, amount, id, type)\nTask: Retrieve code from customers with salary above the MAX(salary) of departments rows sharing the same status.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE salary > (\n SELECT MAX(salary) FROM departments AS dept\n WHERE dept.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "departments", "outer_alias": "cust", "inner_alias": "dept", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01936", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(name, date, id, amount)\n regions(id, name, type, level)\nTask: Retrieve value from products whose code is found in regions rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01937", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(date, value, salary, level)\n products(date, name, level, code)\nTask: Find salary from employees where value exceeds the total amount from products for the same id.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE value > (\n SELECT SUM(amount) FROM products AS prod\n WHERE prod.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01938", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(name, code, amount, type)\n tasks(id, status, date, name)\nTask: Find name from branches where id appears in tasks entries with matching status.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE id IN (\n SELECT id FROM tasks AS tsk\n WHERE tsk.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01939", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(type, level, code, id)\n employees(status, date, id, value)\nTask: Find id from branches where a matching record exists in employees with the same code.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "employees", "outer_alias": "brc", "inner_alias": "emp", "proj_col": "id", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01940", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(value, amount, date, salary)\n categories(id, name, status, code)\nTask: Find salary from products where a matching record exists in categories with the same status.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "categories", "outer_alias": "prod", "inner_alias": "catg", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01941", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(salary, status, amount, level)\n shipments(id, status, type, salary)\nTask: Retrieve amount from branches that have at least one corresponding entry in shipments sharing the same type.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "shipments", "outer_alias": "brc", "inner_alias": "shp", "proj_col": "amount", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01942", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(level, status, type, date)\n orders(type, amount, name, code)\nTask: Retrieve id from tasks with amount above the MIN(salary) of orders rows sharing the same id.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE amount > (\n SELECT MIN(salary) FROM orders AS ord\n WHERE ord.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "orders", "outer_alias": "tsk", "inner_alias": "ord", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01943", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(id, level, date, amount)\n accounts(code, salary, date, amount)\nTask: Find name from projects where type appears in accounts entries with matching code.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "accounts", "outer_alias": "prj", "inner_alias": "acct", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01944", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(salary, type, level, status)\n products(code, name, salary, amount)\nTask: Retrieve salary from branches with value above the SUM(salary) of products rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE value > (\n SELECT SUM(salary) FROM products AS prod\n WHERE prod.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "products", "outer_alias": "brc", "inner_alias": "prod", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01945", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(status, level, id, date)\n projects(status, level, salary, code)\nTask: Find name from regions where value exceeds the maximum value from projects for the same id.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE value > (\n SELECT MAX(value) FROM projects AS prj\n WHERE prj.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "projects", "outer_alias": "rgn", "inner_alias": "prj", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01946", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(date, amount, salary, name)\n shipments(level, code, amount, type)\nTask: Select id from sales where level exists in shipments for the same status.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE level IN (\n SELECT level FROM shipments AS shp\n WHERE shp.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "shipments", "outer_alias": "sale", "inner_alias": "shp", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01947", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(value, salary, code, level)\n shipments(type, code, id, salary)\nTask: Retrieve value from requests with amount above the MAX(amount) of shipments rows sharing the same status.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE amount > (\n SELECT MAX(amount) FROM shipments AS shp\n WHERE shp.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "shipments", "outer_alias": "ordr", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01948", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(code, value, status, date)\n products(salary, status, id, type)\nTask: Find name from staff where status appears in products entries with matching status.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "products", "outer_alias": "empl", "inner_alias": "prod", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01949", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(salary, date, level, name)\n managers(date, value, salary, type)\nTask: Find name from sales where level appears in managers entries with matching status.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01950", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(name, level, amount, value)\n requests(type, salary, id, status)\nTask: Retrieve value from orders with value above the SUM(value) of requests rows sharing the same code.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE value > (\n SELECT SUM(value) FROM requests AS ordr\n WHERE ordr.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "requests", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01951", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(value, date, type, name)\n products(level, date, amount, code)\nTask: Find amount from sales where a matching record exists in products with the same status.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "products", "outer_alias": "sale", "inner_alias": "prod", "proj_col": "amount", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01952", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(type, code, id, status)\n departments(value, code, name, status)\nTask: Find salary from managers where amount exceeds the count of salary from departments for the same id.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE amount > (\n SELECT COUNT(salary) FROM departments AS dept\n WHERE dept.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "departments", "outer_alias": "mgr", "inner_alias": "dept", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01953", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(type, salary, code, id)\n shipments(type, value, salary, amount)\nTask: Retrieve name from managers with amount above the MIN(salary) of shipments rows sharing the same level.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE amount > (\n SELECT MIN(salary) FROM shipments AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "shipments", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01954", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(code, level, status, type)\n managers(type, status, date, level)\nTask: Retrieve amount from orders that have at least one corresponding entry in managers sharing the same type.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "managers", "outer_alias": "ord", "inner_alias": "mgr", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01955", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(value, amount, date, status)\n categories(level, id, type, amount)\nTask: Retrieve name from invoices with amount above the COUNT(amount) of categories rows sharing the same type.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE amount > (\n SELECT COUNT(amount) FROM categories AS catg\n WHERE catg.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "categories", "outer_alias": "inv", "inner_alias": "catg", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01956", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(status, type, salary, name)\n items(id, salary, name, date)\nTask: Retrieve salary from regions with amount above the MAX(salary) of items rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE amount > (\n SELECT MAX(salary) FROM items AS lne\n WHERE lne.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "items", "outer_alias": "rgn", "inner_alias": "lne", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01957", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(id, level, name, amount)\n categories(level, value, name, type)\nTask: Find value from requests where salary exceeds the minimum amount from categories for the same level.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE salary > (\n SELECT MIN(amount) FROM categories AS catg\n WHERE catg.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "categories", "outer_alias": "ordr", "inner_alias": "catg", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01958", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(date, salary, name, value)\n departments(name, level, type, salary)\nTask: Retrieve salary from accounts that have at least one corresponding entry in departments sharing the same code.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "departments", "outer_alias": "acct", "inner_alias": "dept", "proj_col": "salary", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01959", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(amount, type, name, code)\n shipments(id, level, salary, value)\nTask: Retrieve salary from projects that have at least one corresponding entry in shipments sharing the same code.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "shipments", "outer_alias": "prj", "inner_alias": "shp", "proj_col": "salary", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01960", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(type, amount, value, code)\n shipments(value, type, name, amount)\nTask: Find value from staff where a matching record exists in shipments with the same id.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01961", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(level, value, date, status)\n projects(value, amount, salary, date)\nTask: Retrieve id from schedules with value above the MAX(amount) of projects rows sharing the same status.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE value > (\n SELECT MAX(amount) FROM projects AS prj\n WHERE prj.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "projects", "outer_alias": "schd", "inner_alias": "prj", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01962", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(level, id, code, type)\n invoices(id, status, amount, salary)\nTask: Find id from tasks where value exceeds the minimum salary from invoices for the same type.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE value > (\n SELECT MIN(salary) FROM invoices AS inv\n WHERE inv.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "invoices", "outer_alias": "tsk", "inner_alias": "inv", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_01963", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(amount, salary, value, type)\n sales(id, status, type, date)\nTask: Retrieve code from shipments that have at least one corresponding entry in sales sharing the same id.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "sales", "outer_alias": "shp", "inner_alias": "sale", "proj_col": "code", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01964", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(date, salary, amount, level)\n branches(value, date, code, name)\nTask: Find name from sales where a matching record exists in branches with the same id.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "branches", "outer_alias": "sale", "inner_alias": "brc", "proj_col": "name", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01965", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(name, level, id, date)\n products(name, level, amount, code)\nTask: Find id from schedules where a matching record exists in products with the same type.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "products", "outer_alias": "schd", "inner_alias": "prod", "proj_col": "id", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01966", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(salary, name, value, amount)\n tasks(type, amount, value, date)\nTask: Select id from departments where status exists in tasks for the same id.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE status IN (\n SELECT status FROM tasks AS tsk\n WHERE tsk.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01967", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(amount, date, name, code)\n regions(code, id, name, status)\nTask: Retrieve code from shipments that have at least one corresponding entry in regions sharing the same level.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "regions", "outer_alias": "shp", "inner_alias": "rgn", "proj_col": "code", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01968", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(status, level, type, value)\n customers(salary, id, level, type)\nTask: Find id from departments where a matching record exists in customers with the same type.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "customers", "outer_alias": "dept", "inner_alias": "cust", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01969", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(name, status, date, amount)\n shipments(id, salary, status, amount)\nTask: Find code from products where a matching record exists in shipments with the same level.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "shipments", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01970", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, name, code, level)\n items(status, level, amount, type)\nTask: Find value from shipments where code appears in items entries with matching code.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM items AS lne\n WHERE lne.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "items", "outer_alias": "shp", "inner_alias": "lne", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_01971", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(salary, type, value, date)\n items(value, salary, date, name)\nTask: Retrieve name from schedules that have at least one corresponding entry in items sharing the same id.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "name", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01972", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(type, code, status, date)\n schedules(status, level, id, date)\nTask: Select id from categories where id exists in schedules for the same id.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "schedules", "outer_alias": "catg", "inner_alias": "schd", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01973", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(level, value, status, date)\n requests(salary, amount, status, name)\nTask: Find name from accounts where salary exceeds the minimum salary from requests for the same status.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE salary > (\n SELECT MIN(salary) FROM requests AS ordr\n WHERE ordr.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "requests", "outer_alias": "acct", "inner_alias": "ordr", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01974", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(id, level, status, amount)\n products(salary, id, status, name)\nTask: Find code from transactions where level appears in products entries with matching id.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01975", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(code, type, id, date)\n products(date, value, name, id)\nTask: Find id from categories where salary exceeds the count of amount from products for the same level.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE salary > (\n SELECT COUNT(amount) FROM products AS prod\n WHERE prod.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "products", "outer_alias": "catg", "inner_alias": "prod", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01976", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(date, id, salary, value)\n managers(type, status, salary, name)\nTask: Find amount from requests where a matching record exists in managers with the same status.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "managers", "outer_alias": "ordr", "inner_alias": "mgr", "proj_col": "amount", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01977", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(value, amount, date, code)\n products(level, name, type, code)\nTask: Retrieve amount from items whose code is found in products rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE code IN (\n SELECT code FROM products AS prod\n WHERE prod.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "products", "outer_alias": "lne", "inner_alias": "prod", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01978", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(id, type, salary, name)\n tasks(status, id, value, name)\nTask: Find name from transactions where status appears in tasks entries with matching type.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE status IN (\n SELECT status FROM tasks AS tsk\n WHERE tsk.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "tasks", "outer_alias": "txn", "inner_alias": "tsk", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01979", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(status, id, date, value)\n transactions(status, date, amount, id)\nTask: Find amount from products where level appears in transactions entries with matching id.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01980", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(status, code, amount, type)\n customers(salary, type, amount, value)\nTask: Retrieve id from branches whose status is found in customers rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE status IN (\n SELECT status FROM customers AS cust\n WHERE cust.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "customers", "outer_alias": "brc", "inner_alias": "cust", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_01981", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(status, type, name, amount)\n regions(date, id, type, value)\nTask: Find code from categories where status appears in regions entries with matching code.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE status IN (\n SELECT status FROM regions AS rgn\n WHERE rgn.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01982", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(name, id, code, amount)\n transactions(status, id, amount, name)\nTask: Retrieve amount from orders with amount above the AVG(amount) of transactions rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE amount > (\n SELECT AVG(amount) FROM transactions AS txn\n WHERE txn.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01983", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(id, status, name, code)\n branches(value, salary, name, amount)\nTask: Retrieve amount from employees with salary above the SUM(salary) of branches rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE salary > (\n SELECT SUM(salary) FROM branches AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "branches", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01984", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(level, amount, value, date)\n sales(amount, status, code, date)\nTask: Retrieve id from projects with salary above the COUNT(value) of sales rows sharing the same type.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE salary > (\n SELECT COUNT(value) FROM sales AS sale\n WHERE sale.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "sales", "outer_alias": "prj", "inner_alias": "sale", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_01985", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(type, amount, code, value)\n tasks(date, type, salary, name)\nTask: Retrieve amount from schedules with amount above the MAX(salary) of tasks rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE amount > (\n SELECT MAX(salary) FROM tasks AS tsk\n WHERE tsk.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "tasks", "outer_alias": "schd", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01986", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(type, status, level, code)\n tasks(date, status, id, salary)\nTask: Retrieve code from invoices whose code is found in tasks rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE code IN (\n SELECT code FROM tasks AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01987", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(level, type, amount, value)\n branches(type, level, status, date)\nTask: Retrieve code from categories that have at least one corresponding entry in branches sharing the same level.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "code", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01988", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(amount, value, level, salary)\n schedules(value, date, name, id)\nTask: Find amount from regions where amount exceeds the maximum amount from schedules for the same status.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE amount > (\n SELECT MAX(amount) FROM schedules AS schd\n WHERE schd.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "schedules", "outer_alias": "rgn", "inner_alias": "schd", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_01989", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(id, amount, name, date)\n orders(amount, level, status, type)\nTask: Retrieve value from schedules that have at least one corresponding entry in orders sharing the same level.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "orders", "outer_alias": "schd", "inner_alias": "ord", "proj_col": "value", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01990", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(name, code, value, status)\n products(amount, name, code, status)\nTask: Select name from items where type exists in products for the same id.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE type IN (\n SELECT type FROM products AS prod\n WHERE prod.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "products", "outer_alias": "lne", "inner_alias": "prod", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_01991", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(date, name, code, type)\n accounts(type, status, name, value)\nTask: Retrieve salary from invoices that have at least one corresponding entry in accounts sharing the same code.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "salary", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01992", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(level, amount, value, type)\n products(date, amount, salary, level)\nTask: Retrieve code from employees with amount above the SUM(value) of products rows sharing the same level.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE amount > (\n SELECT SUM(value) FROM products AS prod\n WHERE prod.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01993", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(code, salary, level, name)\n categories(date, value, id, level)\nTask: Retrieve salary from departments with amount above the COUNT(amount) of categories rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE amount > (\n SELECT COUNT(amount) FROM categories AS catg\n WHERE catg.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "categories", "outer_alias": "dept", "inner_alias": "catg", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01994", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(code, name, amount, level)\n managers(code, id, date, salary)\nTask: Retrieve value from staff whose type is found in managers rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "managers", "outer_alias": "empl", "inner_alias": "mgr", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_01995", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(code, name, level, value)\n employees(salary, name, amount, date)\nTask: Find code from categories where id appears in employees entries with matching code.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "employees", "outer_alias": "catg", "inner_alias": "emp", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_01996", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(code, salary, status, type)\n tasks(value, status, salary, level)\nTask: Find code from accounts where salary exceeds the minimum value from tasks for the same type.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE salary > (\n SELECT MIN(value) FROM tasks AS tsk\n WHERE tsk.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "tasks", "outer_alias": "acct", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01997", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(id, name, code, value)\n staff(level, salary, amount, date)\nTask: Find id from managers where a matching record exists in staff with the same code.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "staff", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_01998", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(level, name, amount, status)\n sales(code, value, name, type)\nTask: Retrieve salary from requests whose code is found in sales rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM sales AS sale\n WHERE sale.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "sales", "outer_alias": "ordr", "inner_alias": "sale", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_01999", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(value, id, salary, status)\n products(name, level, type, id)\nTask: Find value from transactions where a matching record exists in products with the same status.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "value", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02000", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(status, salary, amount, date)\n customers(type, name, level, salary)\nTask: Find amount from accounts where value exceeds the count of value from customers for the same id.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE value > (\n SELECT COUNT(value) FROM customers AS cust\n WHERE cust.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "customers", "outer_alias": "acct", "inner_alias": "cust", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02001", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(value, code, amount, salary)\n departments(name, id, type, amount)\nTask: Retrieve code from categories that have at least one corresponding entry in departments sharing the same status.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "departments", "outer_alias": "catg", "inner_alias": "dept", "proj_col": "code", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02002", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(name, level, code, salary)\n sales(status, code, name, date)\nTask: Retrieve amount from employees that have at least one corresponding entry in sales sharing the same status.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "sales", "outer_alias": "emp", "inner_alias": "sale", "proj_col": "amount", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02003", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(status, level, value, name)\n schedules(level, code, salary, date)\nTask: Retrieve code from requests whose status is found in schedules rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM schedules AS schd\n WHERE schd.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "schedules", "outer_alias": "ordr", "inner_alias": "schd", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02004", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(value, level, name, status)\n departments(salary, type, name, amount)\nTask: Find id from categories where a matching record exists in departments with the same level.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "departments", "outer_alias": "catg", "inner_alias": "dept", "proj_col": "id", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02005", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(value, status, amount, date)\n customers(id, code, level, value)\nTask: Find code from invoices where value exceeds the minimum value from customers for the same code.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE value > (\n SELECT MIN(value) FROM customers AS cust\n WHERE cust.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "customers", "outer_alias": "inv", "inner_alias": "cust", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02006", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(value, date, code, status)\n transactions(id, name, code, status)\nTask: Retrieve id from orders that have at least one corresponding entry in transactions sharing the same type.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02007", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(id, salary, status, code)\n departments(amount, status, date, id)\nTask: Find value from sales where a matching record exists in departments with the same id.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "departments", "outer_alias": "sale", "inner_alias": "dept", "proj_col": "value", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02008", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(level, value, code, name)\n customers(salary, level, date, type)\nTask: Find salary from managers where amount exceeds the maximum salary from customers for the same type.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE amount > (\n SELECT MAX(salary) FROM customers AS cust\n WHERE cust.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "customers", "outer_alias": "mgr", "inner_alias": "cust", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02009", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(amount, id, level, type)\n accounts(id, name, amount, level)\nTask: Retrieve value from orders that have at least one corresponding entry in accounts sharing the same type.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "accounts", "outer_alias": "ord", "inner_alias": "acct", "proj_col": "value", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02010", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(value, status, name, type)\n products(type, code, value, id)\nTask: Retrieve code from managers whose level is found in products rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02011", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(id, date, amount, type)\n customers(salary, code, amount, name)\nTask: Retrieve id from regions that have at least one corresponding entry in customers sharing the same type.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "customers", "outer_alias": "rgn", "inner_alias": "cust", "proj_col": "id", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02012", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(date, level, type, salary)\n invoices(status, amount, date, level)\nTask: Retrieve value from categories that have at least one corresponding entry in invoices sharing the same status.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "invoices", "outer_alias": "catg", "inner_alias": "inv", "proj_col": "value", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02013", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(code, level, name, salary)\n orders(name, salary, level, code)\nTask: Retrieve name from invoices with value above the COUNT(amount) of orders rows sharing the same status.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE value > (\n SELECT COUNT(amount) FROM orders AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "orders", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02014", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(salary, level, amount, name)\n accounts(amount, value, status, level)\nTask: Retrieve name from branches with salary above the MAX(amount) of accounts rows sharing the same id.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE salary > (\n SELECT MAX(amount) FROM accounts AS acct\n WHERE acct.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "accounts", "outer_alias": "brc", "inner_alias": "acct", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02015", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(id, code, type, value)\n regions(amount, type, salary, code)\nTask: Retrieve value from orders that have at least one corresponding entry in regions sharing the same type.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "regions", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "value", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02016", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(value, type, code, salary)\n shipments(value, status, type, date)\nTask: Find name from sales where a matching record exists in shipments with the same level.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "shipments", "outer_alias": "sale", "inner_alias": "shp", "proj_col": "name", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02017", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(type, id, name, salary)\n staff(name, date, code, level)\nTask: Find name from projects where salary exceeds the maximum salary from staff for the same code.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE salary > (\n SELECT MAX(salary) FROM staff AS empl\n WHERE empl.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "staff", "outer_alias": "prj", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02018", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(level, code, amount, date)\n managers(amount, name, type, date)\nTask: Retrieve amount from orders whose type is found in managers rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "managers", "outer_alias": "ord", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02019", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(level, date, type, amount)\n items(name, value, salary, id)\nTask: Find code from branches where amount exceeds the total salary from items for the same level.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE amount > (\n SELECT SUM(salary) FROM items AS lne\n WHERE lne.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "items", "outer_alias": "brc", "inner_alias": "lne", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02020", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(code, name, salary, value)\n departments(code, date, name, salary)\nTask: Select salary from invoices where level exists in departments for the same status.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "departments", "outer_alias": "inv", "inner_alias": "dept", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02021", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(salary, value, amount, level)\n projects(type, value, code, id)\nTask: Find name from employees where a matching record exists in projects with the same type.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "projects", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02022", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(name, date, salary, value)\n invoices(amount, date, status, id)\nTask: Find name from schedules where level appears in invoices entries with matching type.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM invoices AS inv\n WHERE inv.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "invoices", "outer_alias": "schd", "inner_alias": "inv", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02023", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(id, level, type, name)\n regions(salary, type, level, status)\nTask: Find salary from products where a matching record exists in regions with the same code.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02024", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(type, code, value, date)\n customers(date, id, amount, status)\nTask: Find code from departments where value exceeds the minimum value from customers for the same level.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE value > (\n SELECT MIN(value) FROM customers AS cust\n WHERE cust.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "customers", "outer_alias": "dept", "inner_alias": "cust", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02025", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(code, type, name, date)\n items(status, type, salary, value)\nTask: Retrieve amount from invoices whose id is found in items rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "items", "outer_alias": "inv", "inner_alias": "lne", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02026", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(code, type, date, amount)\n orders(amount, type, code, date)\nTask: Retrieve salary from managers with amount above the SUM(salary) of orders rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE amount > (\n SELECT SUM(salary) FROM orders AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "orders", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02027", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(type, level, value, name)\n accounts(value, level, salary, status)\nTask: Retrieve amount from transactions with value above the AVG(value) of accounts rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE value > (\n SELECT AVG(value) FROM accounts AS acct\n WHERE acct.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "accounts", "outer_alias": "txn", "inner_alias": "acct", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02028", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(name, type, salary, level)\n departments(value, type, status, code)\nTask: Find id from branches where amount exceeds the maximum value from departments for the same type.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE amount > (\n SELECT MAX(value) FROM departments AS dept\n WHERE dept.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "departments", "outer_alias": "brc", "inner_alias": "dept", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02029", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(value, amount, code, status)\n accounts(name, code, value, amount)\nTask: Retrieve salary from customers whose status is found in accounts rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE status IN (\n SELECT status FROM accounts AS acct\n WHERE acct.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "accounts", "outer_alias": "cust", "inner_alias": "acct", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02030", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(code, level, type, status)\n orders(value, status, salary, code)\nTask: Retrieve value from invoices that have at least one corresponding entry in orders sharing the same id.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "orders", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "value", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02031", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(level, name, code, salary)\n products(id, date, salary, value)\nTask: Select salary from transactions where type exists in products for the same level.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE type IN (\n SELECT type FROM products AS prod\n WHERE prod.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02032", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(amount, id, code, name)\n employees(value, salary, name, status)\nTask: Find id from shipments where salary exceeds the count of value from employees for the same status.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE salary > (\n SELECT COUNT(value) FROM employees AS emp\n WHERE emp.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "employees", "outer_alias": "shp", "inner_alias": "emp", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02033", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(value, date, id, level)\n schedules(salary, status, name, code)\nTask: Retrieve id from transactions whose type is found in schedules rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "schedules", "outer_alias": "txn", "inner_alias": "schd", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02034", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(status, code, date, name)\n shipments(code, level, amount, id)\nTask: Retrieve salary from categories that have at least one corresponding entry in shipments sharing the same id.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "shipments", "outer_alias": "catg", "inner_alias": "shp", "proj_col": "salary", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02035", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(level, name, amount, id)\n staff(level, id, amount, value)\nTask: Retrieve value from tasks that have at least one corresponding entry in staff sharing the same code.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "staff", "outer_alias": "tsk", "inner_alias": "empl", "proj_col": "value", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02036", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(code, type, id, date)\n requests(amount, level, type, date)\nTask: Find salary from invoices where type appears in requests entries with matching type.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "requests", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02037", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(code, name, amount, salary)\n shipments(salary, type, amount, level)\nTask: Find code from requests where a matching record exists in shipments with the same level.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "shipments", "outer_alias": "ordr", "inner_alias": "shp", "proj_col": "code", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02038", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(id, name, status, value)\n requests(name, amount, code, value)\nTask: Find name from employees where status appears in requests entries with matching id.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "requests", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02039", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(id, status, salary, date)\n accounts(level, id, status, value)\nTask: Find name from schedules where amount exceeds the average value from accounts for the same status.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE amount > (\n SELECT AVG(value) FROM accounts AS acct\n WHERE acct.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "accounts", "outer_alias": "schd", "inner_alias": "acct", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02040", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(type, salary, id, value)\n sales(name, date, status, code)\nTask: Find value from projects where salary exceeds the maximum amount from sales for the same level.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE salary > (\n SELECT MAX(amount) FROM sales AS sale\n WHERE sale.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "sales", "outer_alias": "prj", "inner_alias": "sale", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02041", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(id, status, amount, name)\n invoices(name, type, salary, date)\nTask: Retrieve id from regions whose type is found in invoices rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "invoices", "outer_alias": "rgn", "inner_alias": "inv", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02042", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(value, name, type, date)\n tasks(salary, name, date, id)\nTask: Retrieve amount from transactions that have at least one corresponding entry in tasks sharing the same code.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "tasks", "outer_alias": "txn", "inner_alias": "tsk", "proj_col": "amount", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02043", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(id, status, amount, level)\n regions(name, level, type, id)\nTask: Find salary from items where value exceeds the average amount from regions for the same code.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE value > (\n SELECT AVG(amount) FROM regions AS rgn\n WHERE rgn.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "regions", "outer_alias": "lne", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02044", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(level, amount, code, salary)\n regions(name, code, id, salary)\nTask: Retrieve amount from employees that have at least one corresponding entry in regions sharing the same status.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "regions", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "amount", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02045", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(salary, date, level, code)\n tasks(date, name, value, level)\nTask: Find value from projects where amount exceeds the average amount from tasks for the same status.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE amount > (\n SELECT AVG(amount) FROM tasks AS tsk\n WHERE tsk.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "tasks", "outer_alias": "prj", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02046", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(id, status, amount, value)\n products(code, id, status, level)\nTask: Retrieve amount from tasks whose id is found in products rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "products", "outer_alias": "tsk", "inner_alias": "prod", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02047", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(name, level, code, amount)\n accounts(name, amount, value, salary)\nTask: Retrieve salary from employees whose code is found in accounts rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "accounts", "outer_alias": "emp", "inner_alias": "acct", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02048", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(amount, level, type, code)\n requests(salary, status, date, value)\nTask: Select code from customers where level exists in requests for the same level.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE level IN (\n SELECT level FROM requests AS ordr\n WHERE ordr.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "requests", "outer_alias": "cust", "inner_alias": "ordr", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02049", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(date, id, code, level)\n items(id, value, code, date)\nTask: Find name from sales where salary exceeds the average value from items for the same status.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE salary > (\n SELECT AVG(value) FROM items AS lne\n WHERE lne.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "items", "outer_alias": "sale", "inner_alias": "lne", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02050", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(code, salary, value, amount)\n requests(code, amount, date, status)\nTask: Find id from shipments where a matching record exists in requests with the same type.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "requests", "outer_alias": "shp", "inner_alias": "ordr", "proj_col": "id", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02051", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(id, level, code, date)\n tasks(code, value, salary, type)\nTask: Find code from schedules where a matching record exists in tasks with the same id.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "tasks", "outer_alias": "schd", "inner_alias": "tsk", "proj_col": "code", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02052", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(date, salary, status, level)\n accounts(date, salary, value, level)\nTask: Select name from managers where status exists in accounts for the same type.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE status IN (\n SELECT status FROM accounts AS acct\n WHERE acct.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "accounts", "outer_alias": "mgr", "inner_alias": "acct", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02053", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(name, value, salary, date)\n staff(name, amount, level, salary)\nTask: Retrieve id from categories with salary above the MAX(amount) of staff rows sharing the same status.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE salary > (\n SELECT MAX(amount) FROM staff AS empl\n WHERE empl.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "staff", "outer_alias": "catg", "inner_alias": "empl", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02054", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(value, type, status, amount)\n departments(id, name, type, level)\nTask: Retrieve amount from projects that have at least one corresponding entry in departments sharing the same level.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "departments", "outer_alias": "prj", "inner_alias": "dept", "proj_col": "amount", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02055", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(salary, amount, type, level)\n managers(value, code, salary, type)\nTask: Retrieve name from staff with value above the AVG(salary) of managers rows sharing the same id.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE value > (\n SELECT AVG(salary) FROM managers AS mgr\n WHERE mgr.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "managers", "outer_alias": "empl", "inner_alias": "mgr", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02056", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(type, code, name, id)\n requests(value, level, date, amount)\nTask: Retrieve salary from transactions whose code is found in requests rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "requests", "outer_alias": "txn", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02057", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(salary, amount, status, type)\n managers(type, date, status, id)\nTask: Retrieve amount from items with amount above the MIN(amount) of managers rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE amount > (\n SELECT MIN(amount) FROM managers AS mgr\n WHERE mgr.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "managers", "outer_alias": "lne", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02058", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(status, code, amount, type)\n schedules(code, id, type, date)\nTask: Retrieve name from managers with amount above the AVG(amount) of schedules rows sharing the same level.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM schedules AS schd\n WHERE schd.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "schedules", "outer_alias": "mgr", "inner_alias": "schd", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02059", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(value, type, name, id)\n projects(name, code, id, amount)\nTask: Retrieve code from regions whose id is found in projects rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "projects", "outer_alias": "rgn", "inner_alias": "prj", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02060", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(status, date, amount, value)\n customers(value, salary, type, date)\nTask: Retrieve value from orders that have at least one corresponding entry in customers sharing the same code.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "customers", "outer_alias": "ord", "inner_alias": "cust", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02061", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(value, code, status, amount)\n schedules(amount, value, status, type)\nTask: Find code from invoices where level appears in schedules entries with matching status.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE level IN (\n SELECT level FROM schedules AS schd\n WHERE schd.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02062", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(status, type, name, code)\n schedules(code, value, level, type)\nTask: Retrieve code from customers whose id is found in schedules rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "schedules", "outer_alias": "cust", "inner_alias": "schd", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02063", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(amount, level, type, date)\n transactions(level, date, code, name)\nTask: Select id from categories where status exists in transactions for the same status.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE status IN (\n SELECT status FROM transactions AS txn\n WHERE txn.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "transactions", "outer_alias": "catg", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02064", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(name, status, level, amount)\n schedules(code, salary, name, status)\nTask: Select code from orders where type exists in schedules for the same type.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "schedules", "outer_alias": "ord", "inner_alias": "schd", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02065", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(value, type, name, level)\n sales(date, id, amount, value)\nTask: Find code from schedules where amount exceeds the count of salary from sales for the same level.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE amount > (\n SELECT COUNT(salary) FROM sales AS sale\n WHERE sale.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "sales", "outer_alias": "schd", "inner_alias": "sale", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02066", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(code, level, status, amount)\n invoices(salary, status, level, id)\nTask: Retrieve value from departments that have at least one corresponding entry in invoices sharing the same type.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "invoices", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "value", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02067", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(name, level, value, status)\n managers(name, id, code, date)\nTask: Select salary from orders where status exists in managers for the same id.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "managers", "outer_alias": "ord", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02068", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(status, amount, name, type)\n invoices(salary, type, date, id)\nTask: Find salary from accounts where a matching record exists in invoices with the same type.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "invoices", "outer_alias": "acct", "inner_alias": "inv", "proj_col": "salary", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02069", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(value, type, level, amount)\n projects(amount, id, value, date)\nTask: Retrieve salary from transactions whose status is found in projects rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE status IN (\n SELECT status FROM projects AS prj\n WHERE prj.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02070", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(id, date, level, value)\n staff(id, code, level, value)\nTask: Retrieve id from accounts with salary above the AVG(value) of staff rows sharing the same code.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE salary > (\n SELECT AVG(value) FROM staff AS empl\n WHERE empl.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02071", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(code, amount, id, salary)\n transactions(type, amount, date, salary)\nTask: Find amount from branches where a matching record exists in transactions with the same id.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "transactions", "outer_alias": "brc", "inner_alias": "txn", "proj_col": "amount", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02072", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(value, name, amount, id)\n items(status, type, name, salary)\nTask: Retrieve amount from accounts that have at least one corresponding entry in items sharing the same id.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "items", "outer_alias": "acct", "inner_alias": "lne", "proj_col": "amount", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02073", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(date, status, value, name)\n shipments(amount, id, type, date)\nTask: Find name from invoices where amount exceeds the maximum amount from shipments for the same level.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE amount > (\n SELECT MAX(amount) FROM shipments AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02074", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(name, level, salary, status)\n invoices(id, date, salary, value)\nTask: Find id from transactions where a matching record exists in invoices with the same id.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "invoices", "outer_alias": "txn", "inner_alias": "inv", "proj_col": "id", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02075", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(id, name, type, date)\n managers(id, value, code, salary)\nTask: Retrieve salary from employees whose id is found in managers rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02076", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, amount, name, status)\n employees(salary, level, type, id)\nTask: Find code from shipments where type appears in employees entries with matching type.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "employees", "outer_alias": "shp", "inner_alias": "emp", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02077", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(salary, id, date, level)\n customers(name, id, date, value)\nTask: Find name from categories where value exceeds the average amount from customers for the same code.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE value > (\n SELECT AVG(amount) FROM customers AS cust\n WHERE cust.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "customers", "outer_alias": "catg", "inner_alias": "cust", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02078", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(salary, type, amount, value)\n products(date, id, level, name)\nTask: Retrieve amount from items that have at least one corresponding entry in products sharing the same type.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "products", "outer_alias": "lne", "inner_alias": "prod", "proj_col": "amount", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02079", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(level, id, value, name)\n managers(date, name, salary, amount)\nTask: Retrieve amount from schedules that have at least one corresponding entry in managers sharing the same status.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "amount", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02080", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(type, status, name, value)\n branches(id, name, status, date)\nTask: Find value from customers where salary exceeds the count of amount from branches for the same level.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE salary > (\n SELECT COUNT(amount) FROM branches AS brc\n WHERE brc.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "branches", "outer_alias": "cust", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02081", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(type, value, salary, level)\n invoices(amount, salary, value, date)\nTask: Retrieve name from accounts that have at least one corresponding entry in invoices sharing the same level.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "invoices", "outer_alias": "acct", "inner_alias": "inv", "proj_col": "name", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02082", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(date, salary, type, name)\n invoices(salary, value, id, code)\nTask: Retrieve code from orders with amount above the AVG(amount) of invoices rows sharing the same id.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE amount > (\n SELECT AVG(amount) FROM invoices AS inv\n WHERE inv.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "invoices", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02083", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(value, salary, id, type)\n staff(amount, value, id, salary)\nTask: Retrieve name from schedules with value above the COUNT(value) of staff rows sharing the same status.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE value > (\n SELECT COUNT(value) FROM staff AS empl\n WHERE empl.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "staff", "outer_alias": "schd", "inner_alias": "empl", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02084", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(code, date, id, level)\n accounts(level, date, name, amount)\nTask: Retrieve name from staff with amount above the SUM(amount) of accounts rows sharing the same code.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE amount > (\n SELECT SUM(amount) FROM accounts AS acct\n WHERE acct.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "accounts", "outer_alias": "empl", "inner_alias": "acct", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02085", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(type, status, salary, code)\n schedules(code, id, type, value)\nTask: Find id from transactions where amount exceeds the maximum salary from schedules for the same status.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE amount > (\n SELECT MAX(salary) FROM schedules AS schd\n WHERE schd.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "schedules", "outer_alias": "txn", "inner_alias": "schd", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02086", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(id, code, name, type)\n requests(amount, type, status, name)\nTask: Find salary from managers where a matching record exists in requests with the same status.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02087", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(salary, code, name, value)\n staff(salary, level, id, amount)\nTask: Retrieve value from transactions that have at least one corresponding entry in staff sharing the same code.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "staff", "outer_alias": "txn", "inner_alias": "empl", "proj_col": "value", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02088", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(id, type, code, amount)\n managers(level, amount, type, id)\nTask: Find salary from products where a matching record exists in managers with the same level.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "managers", "outer_alias": "prod", "inner_alias": "mgr", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02089", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(id, date, name, type)\n staff(code, value, date, salary)\nTask: Find code from accounts where salary exceeds the minimum salary from staff for the same status.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE salary > (\n SELECT MIN(salary) FROM staff AS empl\n WHERE empl.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02090", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(id, value, code, name)\n categories(date, code, id, name)\nTask: Find name from tasks where amount exceeds the total amount from categories for the same type.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE amount > (\n SELECT SUM(amount) FROM categories AS catg\n WHERE catg.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "categories", "outer_alias": "tsk", "inner_alias": "catg", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02091", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(value, status, salary, date)\n transactions(name, date, id, salary)\nTask: Find code from sales where id appears in transactions entries with matching code.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE id IN (\n SELECT id FROM transactions AS txn\n WHERE txn.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "transactions", "outer_alias": "sale", "inner_alias": "txn", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02092", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(date, level, name, type)\n products(date, value, amount, status)\nTask: Retrieve salary from schedules whose level is found in products rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "products", "outer_alias": "schd", "inner_alias": "prod", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02093", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(id, amount, name, salary)\n invoices(date, type, level, amount)\nTask: Find value from employees where salary exceeds the total salary from invoices for the same id.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE salary > (\n SELECT SUM(salary) FROM invoices AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02094", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(id, level, status, amount)\n products(id, name, level, salary)\nTask: Retrieve id from invoices with salary above the AVG(salary) of products rows sharing the same type.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE salary > (\n SELECT AVG(salary) FROM products AS prod\n WHERE prod.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "products", "outer_alias": "inv", "inner_alias": "prod", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02095", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(date, name, amount, type)\n employees(amount, level, date, id)\nTask: Retrieve value from schedules with salary above the SUM(amount) of employees rows sharing the same id.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE salary > (\n SELECT SUM(amount) FROM employees AS emp\n WHERE emp.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02096", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(date, salary, type, id)\n departments(id, type, code, level)\nTask: Retrieve id from managers whose code is found in departments rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "departments", "outer_alias": "mgr", "inner_alias": "dept", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02097", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(code, id, status, type)\n invoices(date, status, id, salary)\nTask: Find id from staff where a matching record exists in invoices with the same status.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "invoices", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02098", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(value, level, type, code)\n employees(value, date, type, id)\nTask: Find salary from departments where a matching record exists in employees with the same status.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "employees", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02099", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(id, type, level, salary)\n branches(value, date, type, status)\nTask: Select name from tasks where code exists in branches for the same id.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "branches", "outer_alias": "tsk", "inner_alias": "brc", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02100", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(name, salary, date, amount)\n invoices(amount, code, value, level)\nTask: Find id from shipments where salary exceeds the count of salary from invoices for the same status.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE salary > (\n SELECT COUNT(salary) FROM invoices AS inv\n WHERE inv.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "invoices", "outer_alias": "shp", "inner_alias": "inv", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02101", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(level, amount, id, status)\n branches(amount, type, level, date)\nTask: Find amount from schedules where a matching record exists in branches with the same code.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "branches", "outer_alias": "schd", "inner_alias": "brc", "proj_col": "amount", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02102", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(type, amount, date, status)\n sales(type, value, name, level)\nTask: Retrieve amount from tasks with salary above the MIN(salary) of sales rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE salary > (\n SELECT MIN(salary) FROM sales AS sale\n WHERE sale.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "sales", "outer_alias": "tsk", "inner_alias": "sale", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02103", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(date, type, status, salary)\n customers(amount, name, id, code)\nTask: Retrieve code from categories that have at least one corresponding entry in customers sharing the same level.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "customers", "outer_alias": "catg", "inner_alias": "cust", "proj_col": "code", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02104", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(level, date, id, amount)\n schedules(code, date, name, level)\nTask: Retrieve code from branches with value above the SUM(amount) of schedules rows sharing the same status.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE value > (\n SELECT SUM(amount) FROM schedules AS schd\n WHERE schd.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "schedules", "outer_alias": "brc", "inner_alias": "schd", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02105", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(date, type, status, amount)\n items(amount, name, status, salary)\nTask: Find value from products where salary exceeds the average salary from items for the same level.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE salary > (\n SELECT AVG(salary) FROM items AS lne\n WHERE lne.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "items", "outer_alias": "prod", "inner_alias": "lne", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02106", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(type, date, id, status)\n employees(level, amount, name, status)\nTask: Find name from projects where salary exceeds the count of amount from employees for the same code.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE salary > (\n SELECT COUNT(amount) FROM employees AS emp\n WHERE emp.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "employees", "outer_alias": "prj", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02107", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(status, type, code, salary)\n customers(amount, value, level, id)\nTask: Find id from categories where id appears in customers entries with matching status.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE id IN (\n SELECT id FROM customers AS cust\n WHERE cust.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "customers", "outer_alias": "catg", "inner_alias": "cust", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02108", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(amount, status, salary, date)\n categories(type, value, id, salary)\nTask: Find id from customers where level appears in categories entries with matching status.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "categories", "outer_alias": "cust", "inner_alias": "catg", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02109", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(amount, id, salary, type)\n orders(value, id, salary, name)\nTask: Retrieve salary from products with amount above the AVG(value) of orders rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE amount > (\n SELECT AVG(value) FROM orders AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "orders", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02110", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(name, type, code, salary)\n branches(amount, name, id, type)\nTask: Find code from staff where salary exceeds the minimum salary from branches for the same code.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE salary > (\n SELECT MIN(salary) FROM branches AS brc\n WHERE brc.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "branches", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02111", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(status, level, value, name)\n employees(level, id, code, salary)\nTask: Find salary from tasks where amount exceeds the average value from employees for the same status.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE amount > (\n SELECT AVG(value) FROM employees AS emp\n WHERE emp.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "employees", "outer_alias": "tsk", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02112", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(salary, date, value, name)\n departments(code, status, id, amount)\nTask: Retrieve salary from staff with amount above the COUNT(amount) of departments rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE amount > (\n SELECT COUNT(amount) FROM departments AS dept\n WHERE dept.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "departments", "outer_alias": "empl", "inner_alias": "dept", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02113", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(id, date, amount, name)\n departments(amount, type, level, name)\nTask: Retrieve code from items that have at least one corresponding entry in departments sharing the same code.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "departments", "outer_alias": "lne", "inner_alias": "dept", "proj_col": "code", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02114", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(amount, id, level, date)\n staff(code, salary, amount, status)\nTask: Find name from orders where salary exceeds the total salary from staff for the same code.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE salary > (\n SELECT SUM(salary) FROM staff AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "staff", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02115", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(code, type, date, status)\n sales(salary, date, amount, value)\nTask: Retrieve value from regions with value above the MAX(salary) of sales rows sharing the same id.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE value > (\n SELECT MAX(salary) FROM sales AS sale\n WHERE sale.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "sales", "outer_alias": "rgn", "inner_alias": "sale", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02116", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(value, salary, id, amount)\n invoices(code, level, value, id)\nTask: Retrieve value from schedules that have at least one corresponding entry in invoices sharing the same level.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "invoices", "outer_alias": "schd", "inner_alias": "inv", "proj_col": "value", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02117", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(name, id, type, salary)\n items(code, status, level, id)\nTask: Retrieve id from regions that have at least one corresponding entry in items sharing the same code.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "items", "outer_alias": "rgn", "inner_alias": "lne", "proj_col": "id", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02118", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(amount, salary, value, level)\n sales(status, level, name, type)\nTask: Find code from tasks where a matching record exists in sales with the same status.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "sales", "outer_alias": "tsk", "inner_alias": "sale", "proj_col": "code", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02119", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(name, type, date, value)\n staff(date, code, name, level)\nTask: Find value from schedules where value exceeds the count of salary from staff for the same level.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE value > (\n SELECT COUNT(salary) FROM staff AS empl\n WHERE empl.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "staff", "outer_alias": "schd", "inner_alias": "empl", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02120", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(status, type, id, date)\n items(code, date, name, status)\nTask: Find code from accounts where status appears in items entries with matching level.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "items", "outer_alias": "acct", "inner_alias": "lne", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02121", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(name, code, salary, type)\n schedules(date, type, status, name)\nTask: Retrieve name from accounts with salary above the MAX(salary) of schedules rows sharing the same status.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE salary > (\n SELECT MAX(salary) FROM schedules AS schd\n WHERE schd.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "schedules", "outer_alias": "acct", "inner_alias": "schd", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02122", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(amount, level, status, type)\n departments(date, value, id, salary)\nTask: Retrieve name from projects whose level is found in departments rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "departments", "outer_alias": "prj", "inner_alias": "dept", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02123", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(name, amount, code, salary)\n managers(level, amount, code, id)\nTask: Find code from orders where amount exceeds the minimum amount from managers for the same status.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE amount > (\n SELECT MIN(amount) FROM managers AS mgr\n WHERE mgr.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "managers", "outer_alias": "ord", "inner_alias": "mgr", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02124", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(id, type, date, level)\n products(id, value, amount, code)\nTask: Find salary from tasks where id appears in products entries with matching id.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "products", "outer_alias": "tsk", "inner_alias": "prod", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02125", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(date, id, level, value)\n tasks(date, amount, level, type)\nTask: Retrieve name from requests that have at least one corresponding entry in tasks sharing the same code.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "tasks", "outer_alias": "ordr", "inner_alias": "tsk", "proj_col": "name", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02126", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(name, level, id, salary)\n invoices(id, date, level, name)\nTask: Retrieve name from branches with salary above the SUM(value) of invoices rows sharing the same type.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE salary > (\n SELECT SUM(value) FROM invoices AS inv\n WHERE inv.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "invoices", "outer_alias": "brc", "inner_alias": "inv", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02127", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(value, type, amount, status)\n projects(status, type, id, code)\nTask: Retrieve amount from products that have at least one corresponding entry in projects sharing the same level.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "projects", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02128", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(code, salary, status, level)\n employees(salary, code, date, status)\nTask: Find name from managers where amount exceeds the maximum amount from employees for the same level.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE amount > (\n SELECT MAX(amount) FROM employees AS emp\n WHERE emp.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "employees", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02129", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(amount, value, id, code)\n customers(amount, name, type, value)\nTask: Find amount from branches where code appears in customers entries with matching code.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "customers", "outer_alias": "brc", "inner_alias": "cust", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02130", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(amount, type, salary, code)\n customers(status, type, date, id)\nTask: Find code from orders where amount exceeds the count of amount from customers for the same level.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE amount > (\n SELECT COUNT(amount) FROM customers AS cust\n WHERE cust.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "customers", "outer_alias": "ord", "inner_alias": "cust", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02131", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(code, id, type, date)\n tasks(value, name, level, status)\nTask: Retrieve code from sales that have at least one corresponding entry in tasks sharing the same id.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "tasks", "outer_alias": "sale", "inner_alias": "tsk", "proj_col": "code", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02132", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(date, salary, id, level)\n regions(amount, code, type, value)\nTask: Retrieve salary from customers whose id is found in regions rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02133", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(value, amount, level, code)\n products(amount, status, name, level)\nTask: Find salary from accounts where a matching record exists in products with the same level.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "salary", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02134", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(name, type, status, date)\n products(type, level, status, salary)\nTask: Retrieve amount from shipments with salary above the MAX(value) of products rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE salary > (\n SELECT MAX(value) FROM products AS prod\n WHERE prod.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02135", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(salary, amount, id, type)\n employees(name, id, type, amount)\nTask: Find name from projects where value exceeds the count of salary from employees for the same type.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE value > (\n SELECT COUNT(salary) FROM employees AS emp\n WHERE emp.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "employees", "outer_alias": "prj", "inner_alias": "emp", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02136", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(name, salary, code, id)\n items(level, type, amount, salary)\nTask: Retrieve code from categories whose id is found in items rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02137", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(code, name, type, level)\n tasks(name, date, amount, type)\nTask: Retrieve id from branches that have at least one corresponding entry in tasks sharing the same code.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "id", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02138", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(date, level, type, status)\n schedules(salary, amount, value, code)\nTask: Select id from orders where id exists in schedules for the same code.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "schedules", "outer_alias": "ord", "inner_alias": "schd", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02139", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(amount, value, salary, date)\n customers(amount, id, level, salary)\nTask: Find salary from shipments where value exceeds the total value from customers for the same status.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE value > (\n SELECT SUM(value) FROM customers AS cust\n WHERE cust.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02140", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(name, amount, id, salary)\n managers(code, level, amount, name)\nTask: Retrieve id from requests that have at least one corresponding entry in managers sharing the same id.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "managers", "outer_alias": "ordr", "inner_alias": "mgr", "proj_col": "id", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02141", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(code, amount, id, date)\n categories(salary, status, code, name)\nTask: Find name from projects where salary exceeds the average salary from categories for the same level.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE salary > (\n SELECT AVG(salary) FROM categories AS catg\n WHERE catg.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "categories", "outer_alias": "prj", "inner_alias": "catg", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02142", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(status, value, code, type)\n shipments(name, status, code, id)\nTask: Retrieve id from transactions that have at least one corresponding entry in shipments sharing the same id.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "shipments", "outer_alias": "txn", "inner_alias": "shp", "proj_col": "id", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02143", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(salary, value, level, type)\n employees(salary, code, name, type)\nTask: Retrieve value from tasks that have at least one corresponding entry in employees sharing the same level.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "employees", "outer_alias": "tsk", "inner_alias": "emp", "proj_col": "value", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02144", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(value, code, amount, type)\n staff(type, id, amount, level)\nTask: Retrieve code from managers whose level is found in staff rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "staff", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02145", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(type, salary, amount, level)\n accounts(date, id, status, value)\nTask: Select amount from employees where code exists in accounts for the same code.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "accounts", "outer_alias": "emp", "inner_alias": "acct", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02146", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(salary, value, id, level)\n sales(salary, name, type, value)\nTask: Find code from invoices where a matching record exists in sales with the same code.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "sales", "outer_alias": "inv", "inner_alias": "sale", "proj_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02147", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(name, status, amount, code)\n sales(name, level, value, amount)\nTask: Find name from regions where type appears in sales entries with matching status.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM sales AS sale\n WHERE sale.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "sales", "outer_alias": "rgn", "inner_alias": "sale", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02148", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(status, name, amount, type)\n projects(id, name, code, status)\nTask: Retrieve name from tasks that have at least one corresponding entry in projects sharing the same type.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "projects", "outer_alias": "tsk", "inner_alias": "prj", "proj_col": "name", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02149", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(date, name, status, value)\n customers(id, level, amount, value)\nTask: Retrieve id from managers that have at least one corresponding entry in customers sharing the same status.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "customers", "outer_alias": "mgr", "inner_alias": "cust", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02150", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(status, type, name, code)\n categories(amount, name, status, type)\nTask: Find amount from sales where salary exceeds the minimum salary from categories for the same id.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE salary > (\n SELECT MIN(salary) FROM categories AS catg\n WHERE catg.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "categories", "outer_alias": "sale", "inner_alias": "catg", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02151", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, amount, status, code)\n invoices(id, type, code, amount)\nTask: Find amount from regions where amount exceeds the total salary from invoices for the same status.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE amount > (\n SELECT SUM(salary) FROM invoices AS inv\n WHERE inv.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "invoices", "outer_alias": "rgn", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02152", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(type, date, level, id)\n projects(date, code, name, salary)\nTask: Find salary from orders where amount exceeds the minimum salary from projects for the same code.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE amount > (\n SELECT MIN(salary) FROM projects AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "projects", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02153", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(amount, value, status, salary)\n orders(value, name, level, type)\nTask: Retrieve code from requests that have at least one corresponding entry in orders sharing the same code.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "orders", "outer_alias": "ordr", "inner_alias": "ord", "proj_col": "code", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02154", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(status, value, amount, level)\n branches(id, status, date, code)\nTask: Retrieve salary from transactions that have at least one corresponding entry in branches sharing the same type.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "branches", "outer_alias": "txn", "inner_alias": "brc", "proj_col": "salary", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02155", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(salary, status, value, type)\n sales(value, id, amount, date)\nTask: Select salary from employees where id exists in sales for the same level.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE id IN (\n SELECT id FROM sales AS sale\n WHERE sale.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "sales", "outer_alias": "emp", "inner_alias": "sale", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02156", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(code, type, salary, status)\n transactions(id, status, value, type)\nTask: Find salary from categories where code appears in transactions entries with matching type.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "transactions", "outer_alias": "catg", "inner_alias": "txn", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02157", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(status, amount, value, level)\n products(type, amount, id, status)\nTask: Find name from items where status appears in products entries with matching id.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "products", "outer_alias": "lne", "inner_alias": "prod", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02158", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(code, type, value, date)\n invoices(status, id, code, name)\nTask: Retrieve value from managers that have at least one corresponding entry in invoices sharing the same code.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "invoices", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02159", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(name, salary, code, id)\n tasks(date, value, name, id)\nTask: Select salary from departments where status exists in tasks for the same type.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE status IN (\n SELECT status FROM tasks AS tsk\n WHERE tsk.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02160", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(value, name, date, type)\n projects(amount, name, type, date)\nTask: Select amount from branches where type exists in projects for the same status.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE type IN (\n SELECT type FROM projects AS prj\n WHERE prj.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "projects", "outer_alias": "brc", "inner_alias": "prj", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02161", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(status, amount, date, salary)\n regions(type, salary, code, value)\nTask: Retrieve code from items that have at least one corresponding entry in regions sharing the same id.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "regions", "outer_alias": "lne", "inner_alias": "rgn", "proj_col": "code", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02162", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(level, code, date, name)\n requests(date, id, code, status)\nTask: Find salary from staff where salary exceeds the average salary from requests for the same status.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM requests AS ordr\n WHERE ordr.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "requests", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02163", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(value, salary, code, status)\n accounts(date, value, amount, level)\nTask: Retrieve salary from schedules that have at least one corresponding entry in accounts sharing the same status.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "accounts", "outer_alias": "schd", "inner_alias": "acct", "proj_col": "salary", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02164", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(code, salary, level, type)\n shipments(value, type, status, id)\nTask: Retrieve salary from staff with value above the SUM(amount) of shipments rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE value > (\n SELECT SUM(amount) FROM shipments AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02165", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(level, amount, id, type)\n managers(code, value, type, date)\nTask: Find amount from employees where value exceeds the average amount from managers for the same type.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE value > (\n SELECT AVG(amount) FROM managers AS mgr\n WHERE mgr.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02166", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(name, id, amount, value)\n staff(name, code, level, date)\nTask: Find name from employees where a matching record exists in staff with the same status.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "staff", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02167", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(id, type, name, code)\n departments(status, value, amount, date)\nTask: Find amount from projects where a matching record exists in departments with the same code.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "departments", "outer_alias": "prj", "inner_alias": "dept", "proj_col": "amount", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02168", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(type, value, id, name)\n tasks(amount, status, date, type)\nTask: Find id from branches where salary exceeds the minimum salary from tasks for the same code.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE salary > (\n SELECT MIN(salary) FROM tasks AS tsk\n WHERE tsk.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02169", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(date, level, amount, value)\n sales(amount, status, type, id)\nTask: Find id from regions where a matching record exists in sales with the same status.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "sales", "outer_alias": "rgn", "inner_alias": "sale", "proj_col": "id", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02170", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(salary, date, type, amount)\n employees(id, status, salary, type)\nTask: Find code from branches where amount exceeds the average amount from employees for the same code.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE amount > (\n SELECT AVG(amount) FROM employees AS emp\n WHERE emp.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "employees", "outer_alias": "brc", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02171", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(type, salary, code, id)\n items(date, amount, salary, id)\nTask: Find id from staff where id appears in items entries with matching type.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "items", "outer_alias": "empl", "inner_alias": "lne", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02172", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(id, amount, salary, status)\n accounts(value, date, amount, name)\nTask: Find code from staff where a matching record exists in accounts with the same type.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "accounts", "outer_alias": "empl", "inner_alias": "acct", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02173", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(code, date, salary, value)\n regions(type, code, value, salary)\nTask: Retrieve salary from requests whose type is found in regions rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE type IN (\n SELECT type FROM regions AS rgn\n WHERE rgn.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "regions", "outer_alias": "ordr", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02174", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(value, status, name, amount)\n regions(level, amount, salary, name)\nTask: Find code from orders where a matching record exists in regions with the same id.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "regions", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02175", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(id, name, level, date)\n schedules(level, type, amount, code)\nTask: Retrieve name from categories with amount above the AVG(value) of schedules rows sharing the same type.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE amount > (\n SELECT AVG(value) FROM schedules AS schd\n WHERE schd.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "schedules", "outer_alias": "catg", "inner_alias": "schd", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02176", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(id, code, amount, type)\n invoices(name, status, id, level)\nTask: Retrieve name from customers with salary above the MIN(amount) of invoices rows sharing the same code.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE salary > (\n SELECT MIN(amount) FROM invoices AS inv\n WHERE inv.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02177", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(type, date, level, id)\n managers(date, code, name, status)\nTask: Retrieve code from products with salary above the MIN(value) of managers rows sharing the same level.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE salary > (\n SELECT MIN(value) FROM managers AS mgr\n WHERE mgr.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "managers", "outer_alias": "prod", "inner_alias": "mgr", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02178", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(type, salary, date, value)\n customers(level, status, amount, code)\nTask: Retrieve value from projects whose code is found in customers rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "customers", "outer_alias": "prj", "inner_alias": "cust", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02179", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(value, salary, level, code)\n schedules(name, level, status, salary)\nTask: Retrieve id from products with amount above the MIN(amount) of schedules rows sharing the same level.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE amount > (\n SELECT MIN(amount) FROM schedules AS schd\n WHERE schd.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "schedules", "outer_alias": "prod", "inner_alias": "schd", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02180", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(id, name, salary, value)\n shipments(status, salary, value, type)\nTask: Retrieve value from branches with value above the MAX(amount) of shipments rows sharing the same id.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE value > (\n SELECT MAX(amount) FROM shipments AS shp\n WHERE shp.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "shipments", "outer_alias": "brc", "inner_alias": "shp", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02181", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(id, type, amount, level)\n branches(level, amount, date, id)\nTask: Find code from products where value exceeds the minimum salary from branches for the same type.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE value > (\n SELECT MIN(salary) FROM branches AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "branches", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02182", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(date, value, name, salary)\n managers(value, status, code, date)\nTask: Retrieve name from branches with salary above the SUM(value) of managers rows sharing the same status.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE salary > (\n SELECT SUM(value) FROM managers AS mgr\n WHERE mgr.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02183", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(amount, value, name, salary)\n departments(amount, type, date, name)\nTask: Retrieve code from managers whose id is found in departments rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM departments AS dept\n WHERE dept.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "departments", "outer_alias": "mgr", "inner_alias": "dept", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02184", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(level, salary, id, code)\n sales(type, code, status, value)\nTask: Find name from managers where value exceeds the average salary from sales for the same code.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE value > (\n SELECT AVG(salary) FROM sales AS sale\n WHERE sale.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "sales", "outer_alias": "mgr", "inner_alias": "sale", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02185", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(status, value, id, name)\n invoices(id, type, code, name)\nTask: Retrieve salary from items that have at least one corresponding entry in invoices sharing the same status.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "invoices", "outer_alias": "lne", "inner_alias": "inv", "proj_col": "salary", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02186", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(level, id, amount, type)\n departments(date, status, amount, type)\nTask: Find value from employees where a matching record exists in departments with the same id.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "departments", "outer_alias": "emp", "inner_alias": "dept", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02187", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(amount, level, status, type)\n staff(id, name, level, type)\nTask: Find id from categories where amount exceeds the maximum amount from staff for the same level.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE amount > (\n SELECT MAX(amount) FROM staff AS empl\n WHERE empl.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "staff", "outer_alias": "catg", "inner_alias": "empl", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02188", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(level, amount, date, code)\n orders(date, code, level, type)\nTask: Find value from managers where a matching record exists in orders with the same id.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "orders", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "value", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02189", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(name, salary, type, date)\n customers(amount, salary, status, date)\nTask: Retrieve code from transactions that have at least one corresponding entry in customers sharing the same id.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "customers", "outer_alias": "txn", "inner_alias": "cust", "proj_col": "code", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02190", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(value, name, level, code)\n staff(id, code, salary, level)\nTask: Retrieve id from accounts with value above the SUM(amount) of staff rows sharing the same level.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE value > (\n SELECT SUM(amount) FROM staff AS empl\n WHERE empl.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02191", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(type, salary, level, id)\n managers(salary, type, name, amount)\nTask: Retrieve value from products whose status is found in managers rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "managers", "outer_alias": "prod", "inner_alias": "mgr", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02192", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(level, amount, value, id)\n invoices(id, code, status, date)\nTask: Retrieve value from projects that have at least one corresponding entry in invoices sharing the same id.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "invoices", "outer_alias": "prj", "inner_alias": "inv", "proj_col": "value", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02193", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(type, id, code, status)\n invoices(level, name, type, amount)\nTask: Find amount from sales where a matching record exists in invoices with the same code.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "invoices", "outer_alias": "sale", "inner_alias": "inv", "proj_col": "amount", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02194", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(id, salary, code, type)\n branches(value, id, amount, type)\nTask: Select value from departments where status exists in branches for the same code.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "branches", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02195", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(code, salary, level, value)\n sales(id, salary, type, name)\nTask: Find name from customers where a matching record exists in sales with the same code.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "sales", "outer_alias": "cust", "inner_alias": "sale", "proj_col": "name", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02196", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(name, status, level, date)\n departments(date, id, salary, value)\nTask: Retrieve name from transactions that have at least one corresponding entry in departments sharing the same code.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "departments", "outer_alias": "txn", "inner_alias": "dept", "proj_col": "name", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02197", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(amount, salary, id, type)\n projects(code, status, id, salary)\nTask: Retrieve value from employees that have at least one corresponding entry in projects sharing the same type.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "projects", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "value", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02198", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(level, name, code, salary)\n orders(level, id, type, salary)\nTask: Find amount from customers where salary exceeds the minimum amount from orders for the same status.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE salary > (\n SELECT MIN(amount) FROM orders AS ord\n WHERE ord.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "orders", "outer_alias": "cust", "inner_alias": "ord", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02199", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(salary, status, level, name)\n staff(amount, level, id, type)\nTask: Find code from departments where amount exceeds the count of value from staff for the same id.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE amount > (\n SELECT COUNT(value) FROM staff AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02200", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(code, type, status, value)\n categories(value, name, id, status)\nTask: Retrieve name from accounts with amount above the COUNT(value) of categories rows sharing the same level.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE amount > (\n SELECT COUNT(value) FROM categories AS catg\n WHERE catg.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "categories", "outer_alias": "acct", "inner_alias": "catg", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02201", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(code, name, type, amount)\n products(code, amount, name, salary)\nTask: Retrieve id from shipments with salary above the COUNT(value) of products rows sharing the same code.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE salary > (\n SELECT COUNT(value) FROM products AS prod\n WHERE prod.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02202", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(type, status, id, amount)\n schedules(value, level, type, code)\nTask: Retrieve name from invoices with value above the SUM(amount) of schedules rows sharing the same type.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE value > (\n SELECT SUM(amount) FROM schedules AS schd\n WHERE schd.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02203", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(value, level, salary, code)\n categories(name, id, date, type)\nTask: Retrieve id from staff whose id is found in categories rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "categories", "outer_alias": "empl", "inner_alias": "catg", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02204", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(code, type, status, value)\n accounts(id, date, level, type)\nTask: Find code from transactions where a matching record exists in accounts with the same id.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "accounts", "outer_alias": "txn", "inner_alias": "acct", "proj_col": "code", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02205", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(status, id, code, level)\n items(id, name, code, amount)\nTask: Find name from schedules where amount exceeds the minimum amount from items for the same code.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE amount > (\n SELECT MIN(amount) FROM items AS lne\n WHERE lne.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02206", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(salary, status, date, name)\n items(date, id, type, salary)\nTask: Find salary from managers where amount exceeds the minimum value from items for the same level.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE amount > (\n SELECT MIN(value) FROM items AS lne\n WHERE lne.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "items", "outer_alias": "mgr", "inner_alias": "lne", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02207", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(level, salary, type, date)\n regions(amount, name, type, salary)\nTask: Find salary from staff where type appears in regions entries with matching level.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE type IN (\n SELECT type FROM regions AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "regions", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02208", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(date, level, value, id)\n orders(name, salary, value, id)\nTask: Retrieve salary from accounts with amount above the MIN(amount) of orders rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE amount > (\n SELECT MIN(amount) FROM orders AS ord\n WHERE ord.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "orders", "outer_alias": "acct", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02209", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(status, level, salary, value)\n tasks(id, code, level, date)\nTask: Retrieve id from invoices that have at least one corresponding entry in tasks sharing the same level.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02210", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(level, id, value, date)\n orders(salary, date, amount, status)\nTask: Retrieve code from managers with value above the MIN(salary) of orders rows sharing the same status.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE value > (\n SELECT MIN(salary) FROM orders AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "orders", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02211", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(salary, type, status, id)\n employees(salary, name, type, code)\nTask: Select name from schedules where level exists in employees for the same status.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02212", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(status, id, code, salary)\n staff(date, level, type, id)\nTask: Retrieve salary from branches whose type is found in staff rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "staff", "outer_alias": "brc", "inner_alias": "empl", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02213", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(salary, type, id, status)\n staff(id, name, salary, amount)\nTask: Find name from employees where level appears in staff entries with matching code.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "staff", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02214", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(name, id, date, status)\n products(name, value, level, id)\nTask: Find name from projects where value exceeds the minimum salary from products for the same status.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE value > (\n SELECT MIN(salary) FROM products AS prod\n WHERE prod.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "products", "outer_alias": "prj", "inner_alias": "prod", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02215", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(salary, id, amount, level)\n customers(type, code, level, status)\nTask: Find name from items where a matching record exists in customers with the same id.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "customers", "outer_alias": "lne", "inner_alias": "cust", "proj_col": "name", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02216", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(value, level, salary, code)\n accounts(id, name, status, code)\nTask: Find value from tasks where a matching record exists in accounts with the same code.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "accounts", "outer_alias": "tsk", "inner_alias": "acct", "proj_col": "value", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02217", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(id, type, salary, level)\n sales(name, id, date, salary)\nTask: Retrieve value from projects with amount above the MIN(salary) of sales rows sharing the same level.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE amount > (\n SELECT MIN(salary) FROM sales AS sale\n WHERE sale.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "sales", "outer_alias": "prj", "inner_alias": "sale", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02218", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(status, name, id, value)\n staff(id, level, salary, date)\nTask: Select salary from products where id exists in staff for the same level.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE id IN (\n SELECT id FROM staff AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02219", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(amount, id, date, level)\n projects(value, code, type, name)\nTask: Retrieve salary from tasks whose level is found in projects rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "projects", "outer_alias": "tsk", "inner_alias": "prj", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02220", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(type, value, salary, id)\n items(salary, date, value, type)\nTask: Retrieve amount from invoices with amount above the MAX(amount) of items rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE amount > (\n SELECT MAX(amount) FROM items AS lne\n WHERE lne.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "items", "outer_alias": "inv", "inner_alias": "lne", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02221", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(code, status, value, level)\n accounts(id, value, code, level)\nTask: Retrieve salary from products that have at least one corresponding entry in accounts sharing the same id.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "accounts", "outer_alias": "prod", "inner_alias": "acct", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02222", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(type, status, amount, code)\n requests(amount, date, status, salary)\nTask: Retrieve salary from sales that have at least one corresponding entry in requests sharing the same level.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "requests", "outer_alias": "sale", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02223", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(code, name, status, date)\n items(value, id, status, date)\nTask: Select id from staff where id exists in items for the same status.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "items", "outer_alias": "empl", "inner_alias": "lne", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02224", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(status, amount, value, type)\n projects(date, code, status, name)\nTask: Retrieve code from tasks with value above the AVG(value) of projects rows sharing the same status.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE value > (\n SELECT AVG(value) FROM projects AS prj\n WHERE prj.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "projects", "outer_alias": "tsk", "inner_alias": "prj", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02225", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(salary, type, date, code)\n branches(date, salary, id, amount)\nTask: Select value from tasks where status exists in branches for the same level.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "branches", "outer_alias": "tsk", "inner_alias": "brc", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02226", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(date, salary, code, name)\n invoices(date, code, level, status)\nTask: Find salary from staff where id appears in invoices entries with matching id.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE id IN (\n SELECT id FROM invoices AS inv\n WHERE inv.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "invoices", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02227", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(code, date, amount, salary)\n tasks(id, date, level, salary)\nTask: Retrieve code from employees that have at least one corresponding entry in tasks sharing the same id.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "tasks", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02228", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(amount, name, salary, status)\n customers(date, status, id, amount)\nTask: Find name from requests where salary exceeds the count of amount from customers for the same id.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE salary > (\n SELECT COUNT(amount) FROM customers AS cust\n WHERE cust.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "customers", "outer_alias": "ordr", "inner_alias": "cust", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02229", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(code, date, salary, name)\n schedules(value, date, id, name)\nTask: Find code from accounts where a matching record exists in schedules with the same type.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "schedules", "outer_alias": "acct", "inner_alias": "schd", "proj_col": "code", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02230", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(name, status, date, salary)\n customers(amount, code, id, level)\nTask: Find id from staff where a matching record exists in customers with the same type.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "customers", "outer_alias": "empl", "inner_alias": "cust", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02231", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(date, id, salary, value)\n departments(value, code, level, status)\nTask: Select name from branches where level exists in departments for the same status.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "departments", "outer_alias": "brc", "inner_alias": "dept", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02232", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(level, id, status, date)\n projects(type, name, status, value)\nTask: Find id from schedules where amount exceeds the count of salary from projects for the same level.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE amount > (\n SELECT COUNT(salary) FROM projects AS prj\n WHERE prj.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "projects", "outer_alias": "schd", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02233", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(salary, type, amount, value)\n sales(date, id, code, name)\nTask: Retrieve code from customers that have at least one corresponding entry in sales sharing the same level.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "sales", "outer_alias": "cust", "inner_alias": "sale", "proj_col": "code", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02234", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(id, code, date, salary)\n tasks(date, value, level, code)\nTask: Find code from regions where a matching record exists in tasks with the same status.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "tasks", "outer_alias": "rgn", "inner_alias": "tsk", "proj_col": "code", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02235", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(amount, date, id, status)\n invoices(value, code, type, id)\nTask: Find value from sales where amount exceeds the total value from invoices for the same type.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE amount > (\n SELECT SUM(value) FROM invoices AS inv\n WHERE inv.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "invoices", "outer_alias": "sale", "inner_alias": "inv", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02236", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(code, value, level, type)\n requests(date, code, value, amount)\nTask: Retrieve id from managers whose code is found in requests rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02237", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(name, type, amount, value)\n branches(code, type, date, status)\nTask: Find code from items where a matching record exists in branches with the same type.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "code", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02238", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(amount, name, type, date)\n orders(amount, type, level, status)\nTask: Find name from departments where value exceeds the average value from orders for the same status.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE value > (\n SELECT AVG(value) FROM orders AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "orders", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02239", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(name, id, value, type)\n branches(name, value, level, code)\nTask: Find name from employees where status appears in branches entries with matching type.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "branches", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02240", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(date, name, salary, amount)\n staff(type, status, code, amount)\nTask: Find salary from projects where a matching record exists in staff with the same id.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "staff", "outer_alias": "prj", "inner_alias": "empl", "proj_col": "salary", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02241", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(amount, name, code, date)\n items(amount, salary, name, value)\nTask: Select salary from orders where id exists in items for the same type.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02242", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(amount, status, type, id)\n products(status, id, code, amount)\nTask: Find amount from managers where amount exceeds the count of value from products for the same level.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE amount > (\n SELECT COUNT(value) FROM products AS prod\n WHERE prod.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02243", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(value, level, type, status)\n managers(id, code, name, status)\nTask: Retrieve name from shipments with salary above the AVG(value) of managers rows sharing the same code.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE salary > (\n SELECT AVG(value) FROM managers AS mgr\n WHERE mgr.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "managers", "outer_alias": "shp", "inner_alias": "mgr", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02244", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(value, name, salary, level)\n regions(code, salary, name, amount)\nTask: Find salary from invoices where a matching record exists in regions with the same code.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "regions", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "salary", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02245", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(date, salary, name, amount)\n customers(type, status, date, value)\nTask: Retrieve amount from schedules that have at least one corresponding entry in customers sharing the same status.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "customers", "outer_alias": "schd", "inner_alias": "cust", "proj_col": "amount", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02246", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(amount, id, date, name)\n schedules(status, value, id, code)\nTask: Retrieve name from staff whose code is found in schedules rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE code IN (\n SELECT code FROM schedules AS schd\n WHERE schd.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "schedules", "outer_alias": "empl", "inner_alias": "schd", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02247", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(code, id, value, salary)\n branches(name, level, status, date)\nTask: Retrieve salary from managers with amount above the AVG(value) of branches rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE amount > (\n SELECT AVG(value) FROM branches AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "branches", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02248", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(level, salary, name, date)\n projects(salary, type, code, name)\nTask: Retrieve salary from departments whose code is found in projects rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "projects", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02249", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(level, code, name, date)\n items(amount, value, level, id)\nTask: Retrieve value from products that have at least one corresponding entry in items sharing the same level.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "items", "outer_alias": "prod", "inner_alias": "lne", "proj_col": "value", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02250", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(level, value, type, id)\n employees(id, status, type, date)\nTask: Find salary from regions where amount exceeds the minimum amount from employees for the same id.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE amount > (\n SELECT MIN(amount) FROM employees AS emp\n WHERE emp.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02251", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(name, code, date, type)\n transactions(type, code, status, value)\nTask: Find code from products where a matching record exists in transactions with the same status.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02252", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(name, level, value, status)\n items(value, status, level, name)\nTask: Retrieve id from tasks that have at least one corresponding entry in items sharing the same status.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "items", "outer_alias": "tsk", "inner_alias": "lne", "proj_col": "id", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02253", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(amount, name, status, level)\n schedules(code, amount, salary, id)\nTask: Retrieve salary from shipments with amount above the SUM(salary) of schedules rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE amount > (\n SELECT SUM(salary) FROM schedules AS schd\n WHERE schd.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "schedules", "outer_alias": "shp", "inner_alias": "schd", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02254", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(date, status, type, level)\n items(status, salary, code, amount)\nTask: Find amount from shipments where code appears in items entries with matching level.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM items AS lne\n WHERE lne.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "items", "outer_alias": "shp", "inner_alias": "lne", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02255", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(code, type, name, id)\n customers(amount, status, name, type)\nTask: Select name from shipments where status exists in customers for the same type.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE status IN (\n SELECT status FROM customers AS cust\n WHERE cust.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02256", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(level, name, id, salary)\n orders(amount, status, type, value)\nTask: Retrieve value from accounts that have at least one corresponding entry in orders sharing the same status.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "orders", "outer_alias": "acct", "inner_alias": "ord", "proj_col": "value", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02257", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(id, code, name, value)\n departments(salary, status, type, name)\nTask: Find value from regions where amount exceeds the maximum value from departments for the same id.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE amount > (\n SELECT MAX(value) FROM departments AS dept\n WHERE dept.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "departments", "outer_alias": "rgn", "inner_alias": "dept", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02258", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(amount, salary, value, status)\n requests(amount, date, level, name)\nTask: Find value from departments where status appears in requests entries with matching code.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "requests", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02259", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(id, date, value, type)\n transactions(amount, name, code, type)\nTask: Retrieve code from employees that have at least one corresponding entry in transactions sharing the same code.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "transactions", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02260", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(type, salary, date, value)\n schedules(id, level, type, status)\nTask: Select value from regions where type exists in schedules for the same id.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "schedules", "outer_alias": "rgn", "inner_alias": "schd", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02261", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(name, id, type, status)\n orders(level, id, type, value)\nTask: Find amount from managers where amount exceeds the average amount from orders for the same status.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM orders AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "orders", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02262", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(name, type, id, value)\n employees(date, salary, status, id)\nTask: Find name from tasks where a matching record exists in employees with the same id.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "employees", "outer_alias": "tsk", "inner_alias": "emp", "proj_col": "name", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02263", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(type, name, salary, code)\n requests(level, code, amount, status)\nTask: Find amount from shipments where value exceeds the minimum value from requests for the same level.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE value > (\n SELECT MIN(value) FROM requests AS ordr\n WHERE ordr.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "requests", "outer_alias": "shp", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02264", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(code, salary, amount, status)\n branches(salary, id, level, value)\nTask: Select amount from departments where code exists in branches for the same type.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "branches", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02265", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(type, code, level, salary)\n transactions(date, level, value, id)\nTask: Retrieve value from projects that have at least one corresponding entry in transactions sharing the same code.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "transactions", "outer_alias": "prj", "inner_alias": "txn", "proj_col": "value", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02266", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(code, value, level, type)\n staff(value, type, id, level)\nTask: Retrieve name from shipments that have at least one corresponding entry in staff sharing the same status.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "staff", "outer_alias": "shp", "inner_alias": "empl", "proj_col": "name", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02267", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(amount, name, salary, code)\n orders(id, amount, status, value)\nTask: Select value from branches where status exists in orders for the same level.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE status IN (\n SELECT status FROM orders AS ord\n WHERE ord.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "orders", "outer_alias": "brc", "inner_alias": "ord", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02268", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(level, amount, salary, status)\n customers(amount, id, status, date)\nTask: Retrieve code from managers that have at least one corresponding entry in customers sharing the same id.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "customers", "outer_alias": "mgr", "inner_alias": "cust", "proj_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02269", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(amount, code, type, salary)\n accounts(salary, status, id, type)\nTask: Retrieve name from sales whose type is found in accounts rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "accounts", "outer_alias": "sale", "inner_alias": "acct", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02270", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(level, value, salary, name)\n managers(value, amount, status, salary)\nTask: Retrieve code from branches with salary above the SUM(amount) of managers rows sharing the same type.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE salary > (\n SELECT SUM(amount) FROM managers AS mgr\n WHERE mgr.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02271", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(salary, value, type, code)\n shipments(salary, date, code, id)\nTask: Find amount from transactions where a matching record exists in shipments with the same status.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "shipments", "outer_alias": "txn", "inner_alias": "shp", "proj_col": "amount", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02272", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(date, id, amount, status)\n sales(date, amount, status, value)\nTask: Retrieve value from customers that have at least one corresponding entry in sales sharing the same code.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "sales", "outer_alias": "cust", "inner_alias": "sale", "proj_col": "value", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02273", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(id, amount, name, status)\n requests(id, status, amount, level)\nTask: Retrieve amount from projects whose status is found in requests rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02274", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(date, value, type, salary)\n shipments(name, value, date, level)\nTask: Find salary from invoices where code appears in shipments entries with matching status.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02275", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(value, status, date, amount)\n products(salary, level, id, status)\nTask: Retrieve amount from employees that have at least one corresponding entry in products sharing the same status.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "amount", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02276", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(status, type, code, date)\n requests(type, amount, id, value)\nTask: Find code from managers where amount exceeds the average salary from requests for the same type.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE amount > (\n SELECT AVG(salary) FROM requests AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02277", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(level, date, salary, amount)\n tasks(value, name, type, status)\nTask: Select id from staff where type exists in tasks for the same type.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "tasks", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02278", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(id, name, date, type)\n projects(name, code, status, date)\nTask: Find id from sales where a matching record exists in projects with the same status.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "projects", "outer_alias": "sale", "inner_alias": "prj", "proj_col": "id", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02279", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(name, code, date, type)\n staff(date, salary, amount, value)\nTask: Find id from branches where value exceeds the count of value from staff for the same id.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE value > (\n SELECT COUNT(value) FROM staff AS empl\n WHERE empl.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "staff", "outer_alias": "brc", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02280", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(amount, code, date, type)\n staff(salary, value, code, type)\nTask: Find value from departments where salary exceeds the count of salary from staff for the same type.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE salary > (\n SELECT COUNT(salary) FROM staff AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02281", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(value, type, salary, amount)\n tasks(status, code, value, name)\nTask: Select value from departments where type exists in tasks for the same id.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02282", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(value, code, salary, level)\n accounts(value, code, amount, name)\nTask: Retrieve name from sales that have at least one corresponding entry in accounts sharing the same status.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "accounts", "outer_alias": "sale", "inner_alias": "acct", "proj_col": "name", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02283", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(code, date, value, level)\n customers(status, amount, value, type)\nTask: Find name from projects where id appears in customers entries with matching level.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE id IN (\n SELECT id FROM customers AS cust\n WHERE cust.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "customers", "outer_alias": "prj", "inner_alias": "cust", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02284", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(name, salary, id, level)\n shipments(status, salary, type, date)\nTask: Select name from sales where id exists in shipments for the same id.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE id IN (\n SELECT id FROM shipments AS shp\n WHERE shp.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "shipments", "outer_alias": "sale", "inner_alias": "shp", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02285", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(level, salary, date, type)\n transactions(level, name, date, value)\nTask: Retrieve salary from products with amount above the COUNT(value) of transactions rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE amount > (\n SELECT COUNT(value) FROM transactions AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02286", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(type, date, id, code)\n regions(amount, name, status, type)\nTask: Find id from invoices where a matching record exists in regions with the same level.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "regions", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02287", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(status, type, date, name)\n orders(code, type, level, name)\nTask: Find value from shipments where value exceeds the maximum value from orders for the same level.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE value > (\n SELECT MAX(value) FROM orders AS ord\n WHERE ord.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "orders", "outer_alias": "shp", "inner_alias": "ord", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02288", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(level, salary, status, value)\n sales(value, date, salary, status)\nTask: Find name from items where a matching record exists in sales with the same code.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "sales", "outer_alias": "lne", "inner_alias": "sale", "proj_col": "name", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02289", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(name, code, level, status)\n tasks(code, id, date, name)\nTask: Retrieve code from products whose level is found in tasks rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE level IN (\n SELECT level FROM tasks AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "tasks", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02290", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(amount, salary, name, date)\n projects(code, id, salary, level)\nTask: Retrieve value from schedules whose code is found in projects rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "projects", "outer_alias": "schd", "inner_alias": "prj", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02291", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(status, value, type, name)\n regions(value, amount, code, id)\nTask: Retrieve id from items with salary above the MIN(value) of regions rows sharing the same level.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE salary > (\n SELECT MIN(value) FROM regions AS rgn\n WHERE rgn.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "regions", "outer_alias": "lne", "inner_alias": "rgn", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02292", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(date, level, status, code)\n shipments(status, name, amount, salary)\nTask: Select salary from employees where code exists in shipments for the same id.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "shipments", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02293", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(value, name, date, amount)\n transactions(salary, name, date, type)\nTask: Retrieve amount from customers with value above the MIN(salary) of transactions rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE value > (\n SELECT MIN(salary) FROM transactions AS txn\n WHERE txn.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "transactions", "outer_alias": "cust", "inner_alias": "txn", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02294", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(level, id, name, date)\n employees(code, date, name, type)\nTask: Retrieve value from products that have at least one corresponding entry in employees sharing the same type.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "employees", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02295", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(amount, status, level, value)\n categories(value, salary, date, code)\nTask: Select code from products where level exists in categories for the same id.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "categories", "outer_alias": "prod", "inner_alias": "catg", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02296", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(name, id, type, level)\n orders(level, status, type, code)\nTask: Retrieve amount from staff whose status is found in orders rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE status IN (\n SELECT status FROM orders AS ord\n WHERE ord.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "orders", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02297", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(code, level, date, id)\n employees(salary, level, id, date)\nTask: Find amount from managers where a matching record exists in employees with the same code.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "employees", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02298", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(date, status, level, amount)\n customers(salary, code, value, amount)\nTask: Retrieve code from products with amount above the SUM(salary) of customers rows sharing the same status.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE amount > (\n SELECT SUM(salary) FROM customers AS cust\n WHERE cust.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "customers", "outer_alias": "prod", "inner_alias": "cust", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02299", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(status, level, date, salary)\n branches(code, salary, date, id)\nTask: Find name from requests where a matching record exists in branches with the same id.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "branches", "outer_alias": "ordr", "inner_alias": "brc", "proj_col": "name", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02300", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(id, status, type, name)\n schedules(date, status, value, name)\nTask: Select salary from projects where code exists in schedules for the same level.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE code IN (\n SELECT code FROM schedules AS schd\n WHERE schd.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "schedules", "outer_alias": "prj", "inner_alias": "schd", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02301", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(status, level, code, value)\n customers(name, code, date, value)\nTask: Retrieve amount from accounts that have at least one corresponding entry in customers sharing the same type.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "customers", "outer_alias": "acct", "inner_alias": "cust", "proj_col": "amount", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02302", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(status, salary, level, value)\n requests(salary, value, id, name)\nTask: Find id from items where salary exceeds the count of value from requests for the same status.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE salary > (\n SELECT COUNT(value) FROM requests AS ordr\n WHERE ordr.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "requests", "outer_alias": "lne", "inner_alias": "ordr", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02303", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(level, date, status, salary)\n accounts(code, id, status, amount)\nTask: Find salary from projects where a matching record exists in accounts with the same type.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "accounts", "outer_alias": "prj", "inner_alias": "acct", "proj_col": "salary", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02304", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(value, type, code, date)\n projects(id, level, date, name)\nTask: Retrieve code from invoices with amount above the COUNT(amount) of projects rows sharing the same id.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE amount > (\n SELECT COUNT(amount) FROM projects AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "projects", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02305", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(type, code, date, id)\n categories(code, name, salary, level)\nTask: Retrieve salary from customers that have at least one corresponding entry in categories sharing the same id.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "categories", "outer_alias": "cust", "inner_alias": "catg", "proj_col": "salary", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02306", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(type, salary, date, value)\n managers(salary, code, amount, id)\nTask: Retrieve name from transactions whose type is found in managers rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "managers", "outer_alias": "txn", "inner_alias": "mgr", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02307", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(type, amount, date, level)\n customers(type, name, salary, value)\nTask: Find id from managers where id appears in customers entries with matching level.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM customers AS cust\n WHERE cust.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "customers", "outer_alias": "mgr", "inner_alias": "cust", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02308", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(value, id, name, level)\n customers(status, value, level, salary)\nTask: Find salary from transactions where a matching record exists in customers with the same id.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "customers", "outer_alias": "txn", "inner_alias": "cust", "proj_col": "salary", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02309", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(status, type, salary, date)\n tasks(type, salary, status, code)\nTask: Find salary from customers where a matching record exists in tasks with the same status.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "tasks", "outer_alias": "cust", "inner_alias": "tsk", "proj_col": "salary", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02310", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(value, code, id, date)\n managers(code, level, type, status)\nTask: Find salary from categories where a matching record exists in managers with the same status.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "managers", "outer_alias": "catg", "inner_alias": "mgr", "proj_col": "salary", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02311", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(date, type, level, value)\n transactions(amount, salary, code, id)\nTask: Retrieve amount from shipments whose type is found in transactions rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM transactions AS txn\n WHERE txn.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "transactions", "outer_alias": "shp", "inner_alias": "txn", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02312", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(id, code, date, salary)\n requests(id, level, value, amount)\nTask: Find value from items where type appears in requests entries with matching type.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "requests", "outer_alias": "lne", "inner_alias": "ordr", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02313", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(value, name, id, code)\n accounts(date, status, value, amount)\nTask: Retrieve code from orders with salary above the MIN(amount) of accounts rows sharing the same type.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE salary > (\n SELECT MIN(amount) FROM accounts AS acct\n WHERE acct.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "accounts", "outer_alias": "ord", "inner_alias": "acct", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02314", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, status, code, name)\n tasks(id, level, status, name)\nTask: Select id from shipments where level exists in tasks for the same type.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM tasks AS tsk\n WHERE tsk.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02315", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(level, name, code, date)\n items(status, salary, type, name)\nTask: Select code from categories where id exists in items for the same code.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02316", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(id, code, level, amount)\n accounts(value, amount, status, salary)\nTask: Find value from staff where amount exceeds the average salary from accounts for the same code.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE amount > (\n SELECT AVG(salary) FROM accounts AS acct\n WHERE acct.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "accounts", "outer_alias": "empl", "inner_alias": "acct", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02317", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(date, type, id, code)\n accounts(id, value, code, amount)\nTask: Find code from requests where salary exceeds the minimum value from accounts for the same id.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE salary > (\n SELECT MIN(value) FROM accounts AS acct\n WHERE acct.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "accounts", "outer_alias": "ordr", "inner_alias": "acct", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02318", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(code, level, value, salary)\n categories(level, date, id, status)\nTask: Retrieve salary from requests whose type is found in categories rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE type IN (\n SELECT type FROM categories AS catg\n WHERE catg.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "categories", "outer_alias": "ordr", "inner_alias": "catg", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02319", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(name, type, date, amount)\n accounts(level, type, name, salary)\nTask: Retrieve code from orders that have at least one corresponding entry in accounts sharing the same status.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "accounts", "outer_alias": "ord", "inner_alias": "acct", "proj_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02320", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(status, name, level, salary)\n products(amount, salary, code, date)\nTask: Select value from employees where type exists in products for the same id.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE type IN (\n SELECT type FROM products AS prod\n WHERE prod.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02321", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(level, status, value, id)\n schedules(status, salary, id, value)\nTask: Retrieve code from accounts that have at least one corresponding entry in schedules sharing the same id.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "schedules", "outer_alias": "acct", "inner_alias": "schd", "proj_col": "code", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02322", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(name, code, date, value)\n invoices(date, level, code, salary)\nTask: Find id from accounts where a matching record exists in invoices with the same id.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "invoices", "outer_alias": "acct", "inner_alias": "inv", "proj_col": "id", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02323", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(date, status, salary, id)\n schedules(status, name, date, level)\nTask: Find value from employees where type appears in schedules entries with matching id.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "schedules", "outer_alias": "emp", "inner_alias": "schd", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02324", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(type, id, salary, status)\n employees(id, code, amount, type)\nTask: Retrieve value from orders with amount above the SUM(value) of employees rows sharing the same type.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE amount > (\n SELECT SUM(value) FROM employees AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02325", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(type, amount, code, id)\n departments(value, level, type, status)\nTask: Find salary from invoices where salary exceeds the minimum value from departments for the same id.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE salary > (\n SELECT MIN(value) FROM departments AS dept\n WHERE dept.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "departments", "outer_alias": "inv", "inner_alias": "dept", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02326", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(value, id, code, amount)\n products(id, salary, level, type)\nTask: Retrieve code from shipments whose level is found in products rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02327", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(name, id, date, value)\n employees(status, code, amount, name)\nTask: Find name from managers where salary exceeds the minimum salary from employees for the same type.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE salary > (\n SELECT MIN(salary) FROM employees AS emp\n WHERE emp.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "employees", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02328", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(amount, status, type, code)\n requests(amount, level, status, salary)\nTask: Retrieve amount from invoices whose type is found in requests rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "requests", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02329", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(amount, code, salary, id)\n items(status, name, type, date)\nTask: Find amount from orders where type appears in items entries with matching id.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02330", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(status, amount, value, name)\n products(name, level, status, date)\nTask: Select name from orders where type exists in products for the same status.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE type IN (\n SELECT type FROM products AS prod\n WHERE prod.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "products", "outer_alias": "ord", "inner_alias": "prod", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02331", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(level, type, amount, value)\n projects(value, status, name, id)\nTask: Retrieve salary from categories that have at least one corresponding entry in projects sharing the same id.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "projects", "outer_alias": "catg", "inner_alias": "prj", "proj_col": "salary", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02332", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(type, id, code, amount)\n items(amount, id, name, date)\nTask: Find name from invoices where amount exceeds the total salary from items for the same code.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE amount > (\n SELECT SUM(salary) FROM items AS lne\n WHERE lne.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "items", "outer_alias": "inv", "inner_alias": "lne", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02333", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(type, salary, name, id)\n projects(level, name, code, status)\nTask: Retrieve id from employees that have at least one corresponding entry in projects sharing the same code.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "projects", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02334", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(status, value, id, type)\n shipments(status, name, type, code)\nTask: Retrieve amount from departments that have at least one corresponding entry in shipments sharing the same status.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "shipments", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02335", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(salary, name, type, id)\n shipments(value, level, salary, type)\nTask: Find value from invoices where amount exceeds the minimum salary from shipments for the same code.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE amount > (\n SELECT MIN(salary) FROM shipments AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02336", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(amount, type, salary, code)\n tasks(type, level, salary, amount)\nTask: Select salary from departments where type exists in tasks for the same status.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02337", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(code, date, status, type)\n branches(type, name, amount, date)\nTask: Find name from sales where amount exceeds the minimum value from branches for the same id.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE amount > (\n SELECT MIN(value) FROM branches AS brc\n WHERE brc.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "branches", "outer_alias": "sale", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02338", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(level, status, date, value)\n invoices(date, level, id, value)\nTask: Retrieve code from tasks with value above the AVG(salary) of invoices rows sharing the same type.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE value > (\n SELECT AVG(salary) FROM invoices AS inv\n WHERE inv.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "invoices", "outer_alias": "tsk", "inner_alias": "inv", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02339", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(date, id, value, status)\n accounts(id, amount, salary, name)\nTask: Retrieve code from products that have at least one corresponding entry in accounts sharing the same id.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "accounts", "outer_alias": "prod", "inner_alias": "acct", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02340", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(value, code, type, amount)\n schedules(date, id, status, code)\nTask: Retrieve value from projects with amount above the MAX(amount) of schedules rows sharing the same level.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE amount > (\n SELECT MAX(amount) FROM schedules AS schd\n WHERE schd.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "schedules", "outer_alias": "prj", "inner_alias": "schd", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02341", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(name, level, value, amount)\n regions(date, amount, type, name)\nTask: Retrieve name from requests with amount above the AVG(salary) of regions rows sharing the same type.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE amount > (\n SELECT AVG(salary) FROM regions AS rgn\n WHERE rgn.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "regions", "outer_alias": "ordr", "inner_alias": "rgn", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02342", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(level, id, name, salary)\n accounts(level, status, name, value)\nTask: Select code from schedules where status exists in accounts for the same id.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE status IN (\n SELECT status FROM accounts AS acct\n WHERE acct.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "accounts", "outer_alias": "schd", "inner_alias": "acct", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02343", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(value, salary, id, status)\n sales(value, name, status, type)\nTask: Find value from accounts where value exceeds the minimum salary from sales for the same status.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE value > (\n SELECT MIN(salary) FROM sales AS sale\n WHERE sale.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "sales", "outer_alias": "acct", "inner_alias": "sale", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02344", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(type, name, amount, salary)\n products(code, level, status, type)\nTask: Find amount from staff where amount exceeds the maximum value from products for the same code.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE amount > (\n SELECT MAX(value) FROM products AS prod\n WHERE prod.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "products", "outer_alias": "empl", "inner_alias": "prod", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02345", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(status, name, type, level)\n shipments(amount, salary, type, level)\nTask: Retrieve salary from products whose level is found in shipments rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE level IN (\n SELECT level FROM shipments AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "shipments", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02346", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(level, value, amount, code)\n projects(status, type, code, date)\nTask: Retrieve id from transactions with value above the COUNT(amount) of projects rows sharing the same id.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE value > (\n SELECT COUNT(amount) FROM projects AS prj\n WHERE prj.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02347", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(code, status, value, amount)\n employees(amount, date, value, name)\nTask: Retrieve salary from tasks that have at least one corresponding entry in employees sharing the same id.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "employees", "outer_alias": "tsk", "inner_alias": "emp", "proj_col": "salary", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02348", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(type, value, name, amount)\n branches(id, level, name, code)\nTask: Find code from staff where amount exceeds the count of amount from branches for the same code.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE amount > (\n SELECT COUNT(amount) FROM branches AS brc\n WHERE brc.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "branches", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02349", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(id, level, status, date)\n departments(level, salary, name, date)\nTask: Find code from regions where salary exceeds the count of value from departments for the same status.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE salary > (\n SELECT COUNT(value) FROM departments AS dept\n WHERE dept.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "departments", "outer_alias": "rgn", "inner_alias": "dept", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02350", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(status, salary, amount, id)\n items(name, salary, amount, status)\nTask: Find salary from requests where type appears in items entries with matching type.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02351", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(date, value, salary, name)\n items(salary, id, code, value)\nTask: Find salary from schedules where a matching record exists in items with the same id.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "salary", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02352", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(date, type, amount, status)\n transactions(salary, code, date, value)\nTask: Find code from orders where a matching record exists in transactions with the same type.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02353", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(value, type, level, salary)\n regions(amount, code, date, salary)\nTask: Retrieve amount from customers whose type is found in regions rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE type IN (\n SELECT type FROM regions AS rgn\n WHERE rgn.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02354", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(name, level, status, type)\n branches(name, level, value, amount)\nTask: Find value from schedules where amount exceeds the average value from branches for the same level.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE amount > (\n SELECT AVG(value) FROM branches AS brc\n WHERE brc.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "branches", "outer_alias": "schd", "inner_alias": "brc", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02355", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(level, value, amount, date)\n invoices(salary, amount, code, status)\nTask: Retrieve id from shipments with value above the SUM(amount) of invoices rows sharing the same type.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE value > (\n SELECT SUM(amount) FROM invoices AS inv\n WHERE inv.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "invoices", "outer_alias": "shp", "inner_alias": "inv", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02356", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(date, salary, type, level)\n items(name, salary, type, id)\nTask: Retrieve code from customers with amount above the SUM(amount) of items rows sharing the same code.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE amount > (\n SELECT SUM(amount) FROM items AS lne\n WHERE lne.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "items", "outer_alias": "cust", "inner_alias": "lne", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02357", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(type, value, amount, id)\n regions(status, date, code, amount)\nTask: Find value from tasks where type appears in regions entries with matching type.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM regions AS rgn\n WHERE rgn.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "regions", "outer_alias": "tsk", "inner_alias": "rgn", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02358", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(code, level, amount, status)\n requests(status, salary, level, type)\nTask: Find code from departments where a matching record exists in requests with the same id.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "requests", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02359", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(name, level, salary, type)\n staff(level, name, type, code)\nTask: Select code from managers where status exists in staff for the same level.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "staff", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02360", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(status, type, id, code)\n requests(id, level, status, type)\nTask: Find name from tasks where a matching record exists in requests with the same type.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "name", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02361", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(date, amount, code, name)\n transactions(level, id, salary, date)\nTask: Find amount from branches where amount exceeds the maximum salary from transactions for the same status.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE amount > (\n SELECT MAX(salary) FROM transactions AS txn\n WHERE txn.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "transactions", "outer_alias": "brc", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02362", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(level, value, type, name)\n customers(code, level, status, date)\nTask: Select id from managers where id exists in customers for the same level.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM customers AS cust\n WHERE cust.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "customers", "outer_alias": "mgr", "inner_alias": "cust", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02363", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(level, date, value, status)\n shipments(code, name, status, type)\nTask: Find code from schedules where salary exceeds the count of salary from shipments for the same status.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE salary > (\n SELECT COUNT(salary) FROM shipments AS shp\n WHERE shp.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "shipments", "outer_alias": "schd", "inner_alias": "shp", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02364", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(status, level, value, name)\n shipments(status, code, level, date)\nTask: Retrieve id from tasks that have at least one corresponding entry in shipments sharing the same level.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "shipments", "outer_alias": "tsk", "inner_alias": "shp", "proj_col": "id", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02365", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(id, code, level, status)\n staff(type, code, date, amount)\nTask: Retrieve salary from customers that have at least one corresponding entry in staff sharing the same status.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "staff", "outer_alias": "cust", "inner_alias": "empl", "proj_col": "salary", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02366", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(id, code, name, type)\n transactions(code, amount, value, date)\nTask: Find value from orders where value exceeds the total salary from transactions for the same status.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE value > (\n SELECT SUM(salary) FROM transactions AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02367", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(name, value, level, salary)\n transactions(id, status, type, name)\nTask: Find value from shipments where a matching record exists in transactions with the same code.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "transactions", "outer_alias": "shp", "inner_alias": "txn", "proj_col": "value", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02368", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(name, id, salary, amount)\n projects(value, level, date, amount)\nTask: Find amount from departments where code appears in projects entries with matching code.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "projects", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02369", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(type, id, date, amount)\n requests(id, name, date, salary)\nTask: Find amount from customers where status appears in requests entries with matching status.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "requests", "outer_alias": "cust", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02370", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(amount, id, salary, level)\n staff(date, value, type, id)\nTask: Retrieve salary from employees with value above the MIN(salary) of staff rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE value > (\n SELECT MIN(salary) FROM staff AS empl\n WHERE empl.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "staff", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02371", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(date, amount, status, id)\n employees(value, name, id, status)\nTask: Find value from regions where amount exceeds the maximum salary from employees for the same type.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE amount > (\n SELECT MAX(salary) FROM employees AS emp\n WHERE emp.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02372", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(id, date, salary, type)\n products(status, amount, value, id)\nTask: Retrieve salary from managers that have at least one corresponding entry in products sharing the same type.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02373", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(amount, level, type, status)\n shipments(status, date, amount, type)\nTask: Select name from staff where type exists in shipments for the same id.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE type IN (\n SELECT type FROM shipments AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02374", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(name, value, amount, date)\n shipments(name, status, amount, id)\nTask: Retrieve code from accounts with salary above the MIN(salary) of shipments rows sharing the same id.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE salary > (\n SELECT MIN(salary) FROM shipments AS shp\n WHERE shp.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "shipments", "outer_alias": "acct", "inner_alias": "shp", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02375", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(amount, id, type, level)\n staff(code, type, salary, id)\nTask: Retrieve id from products that have at least one corresponding entry in staff sharing the same level.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02376", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(code, type, value, id)\n invoices(level, status, type, code)\nTask: Select salary from requests where status exists in invoices for the same level.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM invoices AS inv\n WHERE inv.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "invoices", "outer_alias": "ordr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02377", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(id, date, amount, type)\n items(type, level, amount, name)\nTask: Retrieve id from customers whose status is found in items rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "items", "outer_alias": "cust", "inner_alias": "lne", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02378", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(amount, status, date, type)\n managers(level, value, date, amount)\nTask: Retrieve name from categories that have at least one corresponding entry in managers sharing the same id.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "managers", "outer_alias": "catg", "inner_alias": "mgr", "proj_col": "name", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02379", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(amount, value, status, id)\n employees(date, level, code, status)\nTask: Retrieve salary from customers with value above the AVG(amount) of employees rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE value > (\n SELECT AVG(amount) FROM employees AS emp\n WHERE emp.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02380", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(salary, code, value, type)\n employees(amount, id, salary, status)\nTask: Find value from regions where a matching record exists in employees with the same type.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "value", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02381", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(date, name, level, amount)\n items(name, date, type, code)\nTask: Find amount from requests where value exceeds the count of salary from items for the same level.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE value > (\n SELECT COUNT(salary) FROM items AS lne\n WHERE lne.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02382", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(name, date, id, code)\n employees(code, amount, date, value)\nTask: Find name from projects where salary exceeds the maximum amount from employees for the same code.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE salary > (\n SELECT MAX(amount) FROM employees AS emp\n WHERE emp.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "employees", "outer_alias": "prj", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02383", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(id, type, date, salary)\n sales(name, id, status, salary)\nTask: Retrieve code from departments that have at least one corresponding entry in sales sharing the same level.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "sales", "outer_alias": "dept", "inner_alias": "sale", "proj_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02384", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(amount, date, level, value)\n managers(level, type, status, code)\nTask: Select code from schedules where level exists in managers for the same code.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02385", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(id, amount, name, level)\n items(status, date, type, code)\nTask: Find code from products where value exceeds the total value from items for the same level.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE value > (\n SELECT SUM(value) FROM items AS lne\n WHERE lne.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "items", "outer_alias": "prod", "inner_alias": "lne", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02386", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(value, level, id, status)\n tasks(level, type, value, salary)\nTask: Find value from shipments where a matching record exists in tasks with the same id.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "value", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02387", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(level, date, name, amount)\n orders(type, salary, value, name)\nTask: Retrieve salary from projects whose id is found in orders rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE id IN (\n SELECT id FROM orders AS ord\n WHERE ord.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02388", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(level, date, salary, type)\n managers(value, salary, level, date)\nTask: Select value from staff where level exists in managers for the same code.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "managers", "outer_alias": "empl", "inner_alias": "mgr", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02389", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(value, level, name, date)\n transactions(salary, code, status, name)\nTask: Retrieve name from projects that have at least one corresponding entry in transactions sharing the same id.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "transactions", "outer_alias": "prj", "inner_alias": "txn", "proj_col": "name", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02390", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(value, status, type, id)\n sales(name, level, status, type)\nTask: Find id from requests where a matching record exists in sales with the same level.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "sales", "outer_alias": "ordr", "inner_alias": "sale", "proj_col": "id", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02391", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(id, code, value, date)\n invoices(type, id, status, level)\nTask: Retrieve salary from shipments that have at least one corresponding entry in invoices sharing the same type.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "invoices", "outer_alias": "shp", "inner_alias": "inv", "proj_col": "salary", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02392", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(type, salary, level, id)\n employees(salary, date, type, amount)\nTask: Find amount from customers where value exceeds the total amount from employees for the same code.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE value > (\n SELECT SUM(amount) FROM employees AS emp\n WHERE emp.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02393", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(date, type, value, name)\n staff(amount, status, value, code)\nTask: Retrieve code from transactions that have at least one corresponding entry in staff sharing the same id.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "staff", "outer_alias": "txn", "inner_alias": "empl", "proj_col": "code", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02394", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(value, name, date, amount)\n invoices(amount, status, type, code)\nTask: Find amount from employees where amount exceeds the average amount from invoices for the same code.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE amount > (\n SELECT AVG(amount) FROM invoices AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02395", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(type, level, salary, amount)\n orders(name, level, id, status)\nTask: Retrieve amount from schedules that have at least one corresponding entry in orders sharing the same id.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "orders", "outer_alias": "schd", "inner_alias": "ord", "proj_col": "amount", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02396", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(value, date, id, name)\n invoices(type, status, id, name)\nTask: Retrieve salary from employees that have at least one corresponding entry in invoices sharing the same id.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "salary", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02397", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(amount, date, id, level)\n accounts(status, value, amount, code)\nTask: Select id from departments where type exists in accounts for the same id.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "accounts", "outer_alias": "dept", "inner_alias": "acct", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02398", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(type, date, status, code)\n categories(code, salary, status, amount)\nTask: Select id from managers where code exists in categories for the same status.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM categories AS catg\n WHERE catg.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "categories", "outer_alias": "mgr", "inner_alias": "catg", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02399", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(id, salary, amount, type)\n accounts(status, id, level, code)\nTask: Find code from invoices where value exceeds the total amount from accounts for the same level.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE value > (\n SELECT SUM(amount) FROM accounts AS acct\n WHERE acct.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02400", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(type, value, name, level)\n departments(name, status, id, type)\nTask: Retrieve salary from branches with salary above the AVG(value) of departments rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE salary > (\n SELECT AVG(value) FROM departments AS dept\n WHERE dept.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "departments", "outer_alias": "brc", "inner_alias": "dept", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02401", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(type, id, date, name)\n orders(value, name, salary, date)\nTask: Find code from categories where status appears in orders entries with matching code.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE status IN (\n SELECT status FROM orders AS ord\n WHERE ord.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "orders", "outer_alias": "catg", "inner_alias": "ord", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02402", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(level, status, id, value)\n projects(date, code, amount, value)\nTask: Find amount from invoices where type appears in projects entries with matching type.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM projects AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "projects", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02403", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(amount, date, id, status)\n items(level, date, value, code)\nTask: Retrieve name from departments with value above the AVG(salary) of items rows sharing the same level.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE value > (\n SELECT AVG(salary) FROM items AS lne\n WHERE lne.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "items", "outer_alias": "dept", "inner_alias": "lne", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02404", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(salary, name, date, amount)\n categories(salary, id, value, status)\nTask: Retrieve amount from orders with value above the AVG(salary) of categories rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE value > (\n SELECT AVG(salary) FROM categories AS catg\n WHERE catg.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "categories", "outer_alias": "ord", "inner_alias": "catg", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02405", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(id, type, name, amount)\n staff(code, salary, amount, level)\nTask: Select name from products where id exists in staff for the same type.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE id IN (\n SELECT id FROM staff AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02406", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(type, value, code, status)\n sales(amount, salary, name, value)\nTask: Retrieve amount from projects with salary above the MIN(salary) of sales rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE salary > (\n SELECT MIN(salary) FROM sales AS sale\n WHERE sale.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "sales", "outer_alias": "prj", "inner_alias": "sale", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02407", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(amount, id, value, status)\n invoices(type, name, amount, level)\nTask: Find amount from employees where a matching record exists in invoices with the same type.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02408", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(name, amount, value, date)\n employees(date, status, name, level)\nTask: Retrieve code from accounts that have at least one corresponding entry in employees sharing the same id.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "employees", "outer_alias": "acct", "inner_alias": "emp", "proj_col": "code", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02409", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(type, code, name, amount)\n staff(id, code, amount, date)\nTask: Retrieve value from departments with amount above the AVG(salary) of staff rows sharing the same code.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE amount > (\n SELECT AVG(salary) FROM staff AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02410", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(date, level, status, name)\n employees(level, id, value, amount)\nTask: Retrieve name from products with amount above the MAX(value) of employees rows sharing the same status.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE amount > (\n SELECT MAX(value) FROM employees AS emp\n WHERE emp.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "employees", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02411", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(amount, name, date, level)\n projects(type, amount, value, name)\nTask: Retrieve amount from sales whose type is found in projects rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE type IN (\n SELECT type FROM projects AS prj\n WHERE prj.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "projects", "outer_alias": "sale", "inner_alias": "prj", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02412", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(amount, code, name, type)\n products(date, salary, amount, type)\nTask: Retrieve name from employees that have at least one corresponding entry in products sharing the same level.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "name", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02413", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(id, date, level, salary)\n shipments(level, type, value, id)\nTask: Retrieve amount from customers that have at least one corresponding entry in shipments sharing the same level.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "shipments", "outer_alias": "cust", "inner_alias": "shp", "proj_col": "amount", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02414", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(status, name, salary, date)\n branches(id, code, amount, status)\nTask: Retrieve amount from items with salary above the AVG(amount) of branches rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE salary > (\n SELECT AVG(amount) FROM branches AS brc\n WHERE brc.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02415", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(level, date, value, type)\n employees(value, salary, level, status)\nTask: Select salary from branches where code exists in employees for the same status.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "employees", "outer_alias": "brc", "inner_alias": "emp", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02416", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(date, amount, type, code)\n products(name, code, date, status)\nTask: Select amount from requests where id exists in products for the same code.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "products", "outer_alias": "ordr", "inner_alias": "prod", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02417", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(name, status, salary, id)\n shipments(level, value, type, id)\nTask: Retrieve amount from branches whose code is found in shipments rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "shipments", "outer_alias": "brc", "inner_alias": "shp", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02418", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(date, amount, id, status)\n products(date, id, value, code)\nTask: Retrieve name from projects that have at least one corresponding entry in products sharing the same code.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "products", "outer_alias": "prj", "inner_alias": "prod", "proj_col": "name", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02419", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(id, value, level, amount)\n regions(salary, level, date, type)\nTask: Retrieve name from customers with salary above the AVG(value) of regions rows sharing the same id.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE salary > (\n SELECT AVG(value) FROM regions AS rgn\n WHERE rgn.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02420", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(salary, type, amount, level)\n regions(level, name, type, value)\nTask: Retrieve name from invoices that have at least one corresponding entry in regions sharing the same status.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "regions", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "name", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02421", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(status, salary, level, name)\n managers(date, id, type, name)\nTask: Find amount from products where a matching record exists in managers with the same type.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "managers", "outer_alias": "prod", "inner_alias": "mgr", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02422", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(status, type, salary, code)\n categories(date, name, value, id)\nTask: Retrieve code from items with salary above the COUNT(value) of categories rows sharing the same id.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE salary > (\n SELECT COUNT(value) FROM categories AS catg\n WHERE catg.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02423", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(date, status, id, type)\n projects(name, status, code, type)\nTask: Retrieve code from employees whose status is found in projects rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE status IN (\n SELECT status FROM projects AS prj\n WHERE prj.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "projects", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02424", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(id, value, code, salary)\n categories(date, amount, id, salary)\nTask: Select amount from regions where id exists in categories for the same type.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "categories", "outer_alias": "rgn", "inner_alias": "catg", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02425", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(level, amount, name, salary)\n employees(level, type, date, amount)\nTask: Find value from staff where value exceeds the total salary from employees for the same code.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE value > (\n SELECT SUM(salary) FROM employees AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02426", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(value, level, date, amount)\n invoices(name, id, date, salary)\nTask: Retrieve value from branches with value above the MAX(salary) of invoices rows sharing the same id.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE value > (\n SELECT MAX(salary) FROM invoices AS inv\n WHERE inv.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "invoices", "outer_alias": "brc", "inner_alias": "inv", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02427", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(amount, value, date, id)\n managers(value, amount, status, type)\nTask: Find id from employees where a matching record exists in managers with the same id.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02428", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(type, id, value, status)\n shipments(name, id, date, amount)\nTask: Retrieve amount from customers whose id is found in shipments rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE id IN (\n SELECT id FROM shipments AS shp\n WHERE shp.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "shipments", "outer_alias": "cust", "inner_alias": "shp", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02429", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(id, status, type, date)\n departments(value, date, level, name)\nTask: Retrieve salary from managers that have at least one corresponding entry in departments sharing the same status.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "departments", "outer_alias": "mgr", "inner_alias": "dept", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02430", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(id, value, code, status)\n staff(amount, name, value, status)\nTask: Retrieve amount from regions with value above the COUNT(value) of staff rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE value > (\n SELECT COUNT(value) FROM staff AS empl\n WHERE empl.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "staff", "outer_alias": "rgn", "inner_alias": "empl", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02431", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(code, name, status, type)\n invoices(date, code, amount, name)\nTask: Find value from projects where salary exceeds the count of amount from invoices for the same status.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE salary > (\n SELECT COUNT(amount) FROM invoices AS inv\n WHERE inv.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "invoices", "outer_alias": "prj", "inner_alias": "inv", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02432", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(value, id, code, status)\n requests(amount, date, type, id)\nTask: Select name from shipments where status exists in requests for the same type.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "requests", "outer_alias": "shp", "inner_alias": "ordr", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02433", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(id, status, type, code)\n items(salary, date, code, name)\nTask: Find value from schedules where type appears in items entries with matching status.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02434", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(amount, type, level, name)\n regions(value, date, salary, code)\nTask: Select name from schedules where code exists in regions for the same code.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02435", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(amount, code, status, type)\n items(name, code, level, date)\nTask: Retrieve name from tasks with value above the COUNT(salary) of items rows sharing the same status.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE value > (\n SELECT COUNT(salary) FROM items AS lne\n WHERE lne.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "items", "outer_alias": "tsk", "inner_alias": "lne", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02436", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(date, id, name, type)\n staff(date, amount, salary, status)\nTask: Select amount from shipments where type exists in staff for the same id.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "staff", "outer_alias": "shp", "inner_alias": "empl", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02437", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(name, status, amount, date)\n invoices(name, status, code, level)\nTask: Find name from categories where amount exceeds the average value from invoices for the same type.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE amount > (\n SELECT AVG(value) FROM invoices AS inv\n WHERE inv.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "invoices", "outer_alias": "catg", "inner_alias": "inv", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02438", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(code, salary, status, id)\n departments(id, level, type, value)\nTask: Retrieve code from sales that have at least one corresponding entry in departments sharing the same type.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "departments", "outer_alias": "sale", "inner_alias": "dept", "proj_col": "code", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02439", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(code, type, value, name)\n managers(level, salary, id, amount)\nTask: Find salary from schedules where value exceeds the minimum amount from managers for the same level.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE value > (\n SELECT MIN(amount) FROM managers AS mgr\n WHERE mgr.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02440", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(code, level, type, value)\n tasks(code, status, value, type)\nTask: Select name from invoices where status exists in tasks for the same type.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE status IN (\n SELECT status FROM tasks AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02441", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(value, name, code, salary)\n accounts(level, name, type, salary)\nTask: Retrieve amount from customers that have at least one corresponding entry in accounts sharing the same code.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "accounts", "outer_alias": "cust", "inner_alias": "acct", "proj_col": "amount", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02442", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(date, level, name, id)\n tasks(type, date, status, salary)\nTask: Find amount from items where salary exceeds the maximum value from tasks for the same code.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE salary > (\n SELECT MAX(value) FROM tasks AS tsk\n WHERE tsk.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "tasks", "outer_alias": "lne", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02443", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(status, id, amount, name)\n categories(type, amount, level, id)\nTask: Retrieve salary from items whose type is found in categories rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE type IN (\n SELECT type FROM categories AS catg\n WHERE catg.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02444", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(level, type, code, date)\n sales(salary, value, id, name)\nTask: Select salary from employees where code exists in sales for the same level.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE code IN (\n SELECT code FROM sales AS sale\n WHERE sale.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "sales", "outer_alias": "emp", "inner_alias": "sale", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02445", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(date, level, name, value)\n accounts(type, code, salary, id)\nTask: Find value from orders where a matching record exists in accounts with the same status.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "accounts", "outer_alias": "ord", "inner_alias": "acct", "proj_col": "value", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02446", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(level, code, date, value)\n schedules(amount, level, salary, status)\nTask: Find code from shipments where level appears in schedules entries with matching id.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM schedules AS schd\n WHERE schd.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "schedules", "outer_alias": "shp", "inner_alias": "schd", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02447", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(level, name, code, status)\n transactions(amount, status, date, name)\nTask: Retrieve id from requests with value above the SUM(amount) of transactions rows sharing the same status.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE value > (\n SELECT SUM(amount) FROM transactions AS txn\n WHERE txn.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02448", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(date, id, type, amount)\n requests(date, salary, id, value)\nTask: Select id from tasks where type exists in requests for the same code.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02449", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(type, level, salary, status)\n regions(salary, name, level, value)\nTask: Retrieve code from products with value above the AVG(value) of regions rows sharing the same status.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE value > (\n SELECT AVG(value) FROM regions AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02450", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(salary, value, status, id)\n invoices(code, id, salary, status)\nTask: Retrieve id from departments that have at least one corresponding entry in invoices sharing the same code.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "invoices", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02451", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(salary, id, code, amount)\n schedules(date, value, name, code)\nTask: Retrieve name from sales that have at least one corresponding entry in schedules sharing the same code.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "schedules", "outer_alias": "sale", "inner_alias": "schd", "proj_col": "name", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02452", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(status, salary, value, name)\n tasks(name, date, code, type)\nTask: Retrieve salary from shipments whose type is found in tasks rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02453", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(value, date, name, salary)\n tasks(level, status, date, name)\nTask: Find amount from products where id appears in tasks entries with matching code.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE id IN (\n SELECT id FROM tasks AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "tasks", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02454", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(level, date, amount, salary)\n regions(salary, value, level, date)\nTask: Retrieve salary from sales with amount above the SUM(salary) of regions rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE amount > (\n SELECT SUM(salary) FROM regions AS rgn\n WHERE rgn.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "regions", "outer_alias": "sale", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02455", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(level, value, code, name)\n staff(salary, date, name, code)\nTask: Retrieve amount from sales that have at least one corresponding entry in staff sharing the same type.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "staff", "outer_alias": "sale", "inner_alias": "empl", "proj_col": "amount", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02456", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(level, value, amount, code)\n transactions(type, id, name, date)\nTask: Find id from branches where amount exceeds the total value from transactions for the same type.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE amount > (\n SELECT SUM(value) FROM transactions AS txn\n WHERE txn.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "transactions", "outer_alias": "brc", "inner_alias": "txn", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02457", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(type, level, status, code)\n tasks(date, status, id, level)\nTask: Retrieve name from invoices that have at least one corresponding entry in tasks sharing the same status.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02458", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(level, code, name, salary)\n categories(id, name, salary, level)\nTask: Find value from products where value exceeds the total amount from categories for the same id.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE value > (\n SELECT SUM(amount) FROM categories AS catg\n WHERE catg.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "categories", "outer_alias": "prod", "inner_alias": "catg", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02459", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(date, value, code, name)\n customers(type, date, level, salary)\nTask: Find code from shipments where a matching record exists in customers with the same type.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "code", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02460", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(salary, level, date, amount)\n items(level, salary, status, name)\nTask: Retrieve name from regions that have at least one corresponding entry in items sharing the same type.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "items", "outer_alias": "rgn", "inner_alias": "lne", "proj_col": "name", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02461", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(date, level, value, name)\n shipments(date, status, name, amount)\nTask: Find amount from staff where id appears in shipments entries with matching status.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE id IN (\n SELECT id FROM shipments AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02462", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(amount, code, name, type)\n transactions(name, code, status, date)\nTask: Retrieve salary from employees that have at least one corresponding entry in transactions sharing the same type.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "transactions", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "salary", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02463", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(id, type, level, salary)\n sales(level, id, value, name)\nTask: Find value from regions where value exceeds the maximum value from sales for the same type.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE value > (\n SELECT MAX(value) FROM sales AS sale\n WHERE sale.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "sales", "outer_alias": "rgn", "inner_alias": "sale", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02464", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(date, code, value, status)\n invoices(type, salary, code, date)\nTask: Retrieve id from sales that have at least one corresponding entry in invoices sharing the same type.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "invoices", "outer_alias": "sale", "inner_alias": "inv", "proj_col": "id", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02465", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(id, date, amount, code)\n tasks(value, salary, date, type)\nTask: Select id from schedules where level exists in tasks for the same code.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM tasks AS tsk\n WHERE tsk.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "tasks", "outer_alias": "schd", "inner_alias": "tsk", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02466", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(salary, code, amount, level)\n staff(value, amount, level, status)\nTask: Retrieve amount from regions whose code is found in staff rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM staff AS empl\n WHERE empl.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "staff", "outer_alias": "rgn", "inner_alias": "empl", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02467", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(level, amount, status, value)\n employees(level, status, value, code)\nTask: Retrieve salary from transactions with value above the COUNT(value) of employees rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE value > (\n SELECT COUNT(value) FROM employees AS emp\n WHERE emp.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02468", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(code, status, date, level)\n invoices(level, status, name, date)\nTask: Retrieve salary from categories with salary above the MIN(salary) of invoices rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE salary > (\n SELECT MIN(salary) FROM invoices AS inv\n WHERE inv.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "invoices", "outer_alias": "catg", "inner_alias": "inv", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02469", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(salary, value, date, id)\n departments(value, id, level, type)\nTask: Retrieve value from tasks with value above the MIN(value) of departments rows sharing the same type.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE value > (\n SELECT MIN(value) FROM departments AS dept\n WHERE dept.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "departments", "outer_alias": "tsk", "inner_alias": "dept", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02470", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(value, amount, name, code)\n managers(type, code, level, name)\nTask: Retrieve id from products with salary above the SUM(amount) of managers rows sharing the same id.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE salary > (\n SELECT SUM(amount) FROM managers AS mgr\n WHERE mgr.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "managers", "outer_alias": "prod", "inner_alias": "mgr", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02471", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(value, code, level, amount)\n managers(date, type, amount, name)\nTask: Select name from categories where code exists in managers for the same level.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE code IN (\n SELECT code FROM managers AS mgr\n WHERE mgr.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "managers", "outer_alias": "catg", "inner_alias": "mgr", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02472", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(id, name, status, value)\n accounts(level, salary, type, code)\nTask: Find code from tasks where a matching record exists in accounts with the same code.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "accounts", "outer_alias": "tsk", "inner_alias": "acct", "proj_col": "code", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02473", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(id, value, salary, status)\n transactions(date, amount, name, value)\nTask: Retrieve id from products that have at least one corresponding entry in transactions sharing the same id.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02474", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(type, date, status, id)\n departments(status, salary, amount, date)\nTask: Retrieve code from customers with salary above the AVG(amount) of departments rows sharing the same type.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE salary > (\n SELECT AVG(amount) FROM departments AS dept\n WHERE dept.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "departments", "outer_alias": "cust", "inner_alias": "dept", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02475", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(type, level, status, code)\n sales(id, name, amount, level)\nTask: Retrieve code from categories with value above the MIN(value) of sales rows sharing the same code.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE value > (\n SELECT MIN(value) FROM sales AS sale\n WHERE sale.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "sales", "outer_alias": "catg", "inner_alias": "sale", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02476", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(id, type, code, amount)\n items(date, name, code, id)\nTask: Find amount from categories where value exceeds the count of value from items for the same level.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE value > (\n SELECT COUNT(value) FROM items AS lne\n WHERE lne.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02477", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(type, name, code, value)\n managers(code, level, amount, type)\nTask: Select value from orders where id exists in managers for the same status.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "managers", "outer_alias": "ord", "inner_alias": "mgr", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02478", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(value, date, amount, status)\n managers(amount, salary, value, status)\nTask: Find id from tasks where a matching record exists in managers with the same level.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "managers", "outer_alias": "tsk", "inner_alias": "mgr", "proj_col": "id", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02479", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(type, date, code, level)\n products(status, type, date, name)\nTask: Find code from schedules where value exceeds the minimum amount from products for the same code.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE value > (\n SELECT MIN(amount) FROM products AS prod\n WHERE prod.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "products", "outer_alias": "schd", "inner_alias": "prod", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02480", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(id, type, date, salary)\n products(amount, status, date, name)\nTask: Find amount from accounts where salary exceeds the minimum value from products for the same level.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE salary > (\n SELECT MIN(value) FROM products AS prod\n WHERE prod.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02481", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(name, status, code, level)\n projects(date, amount, code, salary)\nTask: Find amount from departments where a matching record exists in projects with the same type.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "projects", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02482", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(value, level, salary, status)\n items(value, status, code, id)\nTask: Find name from branches where value exceeds the minimum salary from items for the same id.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE value > (\n SELECT MIN(salary) FROM items AS lne\n WHERE lne.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "items", "outer_alias": "brc", "inner_alias": "lne", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02483", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(level, date, salary, value)\n products(date, type, level, code)\nTask: Retrieve salary from managers whose code is found in products rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM products AS prod\n WHERE prod.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02484", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(level, amount, date, code)\n regions(level, id, date, amount)\nTask: Retrieve code from tasks that have at least one corresponding entry in regions sharing the same type.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "regions", "outer_alias": "tsk", "inner_alias": "rgn", "proj_col": "code", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02485", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(value, id, date, name)\n invoices(value, status, date, salary)\nTask: Retrieve id from customers that have at least one corresponding entry in invoices sharing the same id.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "id", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02486", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(status, id, amount, type)\n staff(code, amount, value, status)\nTask: Retrieve id from regions whose status is found in staff rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "staff", "outer_alias": "rgn", "inner_alias": "empl", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02487", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(salary, date, level, code)\n categories(level, status, amount, type)\nTask: Find value from departments where a matching record exists in categories with the same type.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "categories", "outer_alias": "dept", "inner_alias": "catg", "proj_col": "value", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02488", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(status, level, code, id)\n invoices(amount, salary, level, id)\nTask: Find salary from transactions where value exceeds the total salary from invoices for the same level.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE value > (\n SELECT SUM(salary) FROM invoices AS inv\n WHERE inv.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "invoices", "outer_alias": "txn", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02489", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(name, date, level, id)\n items(code, salary, date, type)\nTask: Find amount from categories where a matching record exists in items with the same status.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "amount", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02490", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(value, amount, name, status)\n accounts(status, name, value, type)\nTask: Select salary from managers where type exists in accounts for the same id.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "accounts", "outer_alias": "mgr", "inner_alias": "acct", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02491", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(level, status, code, value)\n staff(name, date, amount, status)\nTask: Find salary from managers where salary exceeds the maximum value from staff for the same id.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE salary > (\n SELECT MAX(value) FROM staff AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "staff", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02492", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(name, date, level, value)\n accounts(id, level, value, amount)\nTask: Retrieve name from projects whose code is found in accounts rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "accounts", "outer_alias": "prj", "inner_alias": "acct", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02493", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(amount, type, level, value)\n employees(code, type, level, date)\nTask: Find salary from products where amount exceeds the count of value from employees for the same level.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE amount > (\n SELECT COUNT(value) FROM employees AS emp\n WHERE emp.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "employees", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02494", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(name, salary, id, value)\n managers(type, salary, name, amount)\nTask: Find value from departments where a matching record exists in managers with the same id.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "managers", "outer_alias": "dept", "inner_alias": "mgr", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02495", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(date, amount, code, salary)\n items(value, code, level, id)\nTask: Retrieve id from managers with amount above the SUM(amount) of items rows sharing the same type.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE amount > (\n SELECT SUM(amount) FROM items AS lne\n WHERE lne.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "items", "outer_alias": "mgr", "inner_alias": "lne", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02496", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(id, salary, value, code)\n branches(status, value, amount, code)\nTask: Find salary from staff where amount exceeds the count of value from branches for the same id.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE amount > (\n SELECT COUNT(value) FROM branches AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "branches", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02497", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(code, id, level, amount)\n requests(value, date, id, name)\nTask: Find amount from tasks where a matching record exists in requests with the same level.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "amount", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02498", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(name, date, status, salary)\n products(salary, status, value, date)\nTask: Find code from sales where amount exceeds the count of amount from products for the same id.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE amount > (\n SELECT COUNT(amount) FROM products AS prod\n WHERE prod.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "products", "outer_alias": "sale", "inner_alias": "prod", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02499", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(value, id, type, level)\n accounts(date, name, status, code)\nTask: Find value from departments where a matching record exists in accounts with the same type.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "accounts", "outer_alias": "dept", "inner_alias": "acct", "proj_col": "value", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02500", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(code, salary, status, date)\n employees(amount, level, code, id)\nTask: Find amount from tasks where type appears in employees entries with matching status.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "employees", "outer_alias": "tsk", "inner_alias": "emp", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02501", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(level, id, value, amount)\n shipments(name, amount, type, code)\nTask: Retrieve code from transactions with amount above the SUM(value) of shipments rows sharing the same code.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE amount > (\n SELECT SUM(value) FROM shipments AS shp\n WHERE shp.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "shipments", "outer_alias": "txn", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02502", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(id, code, type, value)\n categories(level, id, date, value)\nTask: Retrieve salary from employees that have at least one corresponding entry in categories sharing the same status.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "categories", "outer_alias": "emp", "inner_alias": "catg", "proj_col": "salary", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02503", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(value, status, amount, code)\n projects(value, status, code, type)\nTask: Retrieve value from staff with salary above the MAX(value) of projects rows sharing the same id.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE salary > (\n SELECT MAX(value) FROM projects AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "projects", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02504", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(status, level, amount, code)\n managers(level, id, salary, value)\nTask: Retrieve value from projects that have at least one corresponding entry in managers sharing the same status.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "managers", "outer_alias": "prj", "inner_alias": "mgr", "proj_col": "value", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02505", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(level, name, date, amount)\n employees(value, date, code, id)\nTask: Find id from departments where code appears in employees entries with matching type.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "employees", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02506", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(id, code, type, level)\n customers(value, name, amount, status)\nTask: Retrieve name from projects with amount above the MIN(value) of customers rows sharing the same type.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE amount > (\n SELECT MIN(value) FROM customers AS cust\n WHERE cust.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "customers", "outer_alias": "prj", "inner_alias": "cust", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02507", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(level, value, date, type)\n transactions(value, id, code, amount)\nTask: Retrieve id from staff with value above the SUM(value) of transactions rows sharing the same code.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE value > (\n SELECT SUM(value) FROM transactions AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "transactions", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02508", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(type, id, value, level)\n transactions(level, salary, date, amount)\nTask: Find salary from customers where a matching record exists in transactions with the same level.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "transactions", "outer_alias": "cust", "inner_alias": "txn", "proj_col": "salary", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02509", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(amount, level, salary, name)\n tasks(status, id, amount, name)\nTask: Find name from branches where a matching record exists in tasks with the same id.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "name", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02510", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(status, salary, level, type)\n transactions(status, type, amount, value)\nTask: Find amount from items where code appears in transactions entries with matching id.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "transactions", "outer_alias": "lne", "inner_alias": "txn", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02511", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(code, date, type, name)\n sales(status, code, name, amount)\nTask: Find value from items where amount exceeds the minimum value from sales for the same id.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE amount > (\n SELECT MIN(value) FROM sales AS sale\n WHERE sale.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "sales", "outer_alias": "lne", "inner_alias": "sale", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02512", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(type, date, code, level)\n tasks(value, type, date, id)\nTask: Retrieve id from shipments with salary above the SUM(amount) of tasks rows sharing the same id.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE salary > (\n SELECT SUM(amount) FROM tasks AS tsk\n WHERE tsk.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02513", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(date, name, salary, status)\n shipments(date, code, value, name)\nTask: Retrieve id from invoices that have at least one corresponding entry in shipments sharing the same status.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02514", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(salary, status, name, amount)\n categories(value, date, id, salary)\nTask: Retrieve salary from managers whose level is found in categories rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "categories", "outer_alias": "mgr", "inner_alias": "catg", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02515", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(amount, date, salary, value)\n shipments(name, level, status, code)\nTask: Find name from departments where a matching record exists in shipments with the same code.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "shipments", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "name", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02516", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(id, date, salary, level)\n orders(date, salary, status, type)\nTask: Retrieve id from branches with value above the MAX(amount) of orders rows sharing the same type.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE value > (\n SELECT MAX(amount) FROM orders AS ord\n WHERE ord.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "orders", "outer_alias": "brc", "inner_alias": "ord", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02517", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(code, name, salary, id)\n tasks(status, salary, date, level)\nTask: Retrieve id from departments with value above the AVG(amount) of tasks rows sharing the same type.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE value > (\n SELECT AVG(amount) FROM tasks AS tsk\n WHERE tsk.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02518", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(level, code, salary, date)\n customers(level, id, code, name)\nTask: Retrieve id from projects with amount above the MIN(amount) of customers rows sharing the same level.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE amount > (\n SELECT MIN(amount) FROM customers AS cust\n WHERE cust.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "customers", "outer_alias": "prj", "inner_alias": "cust", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02519", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(name, value, date, code)\n sales(code, type, value, id)\nTask: Find salary from staff where value exceeds the minimum value from sales for the same id.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE value > (\n SELECT MIN(value) FROM sales AS sale\n WHERE sale.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "sales", "outer_alias": "empl", "inner_alias": "sale", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02520", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(level, amount, code, date)\n schedules(status, date, id, type)\nTask: Find value from shipments where value exceeds the average value from schedules for the same code.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE value > (\n SELECT AVG(value) FROM schedules AS schd\n WHERE schd.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "schedules", "outer_alias": "shp", "inner_alias": "schd", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02521", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(status, type, id, value)\n accounts(id, date, level, type)\nTask: Select value from tasks where code exists in accounts for the same type.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "accounts", "outer_alias": "tsk", "inner_alias": "acct", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02522", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(id, amount, name, type)\n shipments(status, id, type, value)\nTask: Retrieve salary from requests with amount above the COUNT(value) of shipments rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE amount > (\n SELECT COUNT(value) FROM shipments AS shp\n WHERE shp.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "shipments", "outer_alias": "ordr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02523", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(type, code, value, date)\n products(status, code, value, date)\nTask: Find id from branches where value exceeds the maximum value from products for the same status.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE value > (\n SELECT MAX(value) FROM products AS prod\n WHERE prod.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "products", "outer_alias": "brc", "inner_alias": "prod", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02524", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(code, name, date, value)\n shipments(date, id, salary, value)\nTask: Retrieve id from categories that have at least one corresponding entry in shipments sharing the same status.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "shipments", "outer_alias": "catg", "inner_alias": "shp", "proj_col": "id", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02525", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(amount, date, level, code)\n schedules(level, amount, name, status)\nTask: Find amount from items where salary exceeds the maximum amount from schedules for the same type.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE salary > (\n SELECT MAX(amount) FROM schedules AS schd\n WHERE schd.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "schedules", "outer_alias": "lne", "inner_alias": "schd", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02526", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(value, type, id, code)\n regions(salary, level, value, name)\nTask: Find code from transactions where a matching record exists in regions with the same type.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "code", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02527", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(salary, level, value, status)\n departments(level, name, date, value)\nTask: Select name from products where id exists in departments for the same level.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE id IN (\n SELECT id FROM departments AS dept\n WHERE dept.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "departments", "outer_alias": "prod", "inner_alias": "dept", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02528", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(value, name, salary, code)\n categories(amount, status, salary, type)\nTask: Select name from employees where type exists in categories for the same id.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE type IN (\n SELECT type FROM categories AS catg\n WHERE catg.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "categories", "outer_alias": "emp", "inner_alias": "catg", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02529", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(salary, amount, date, name)\n items(salary, type, name, status)\nTask: Retrieve name from schedules whose status is found in items rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02530", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(code, salary, date, status)\n accounts(date, value, code, status)\nTask: Find code from tasks where salary exceeds the minimum amount from accounts for the same type.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE salary > (\n SELECT MIN(amount) FROM accounts AS acct\n WHERE acct.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "accounts", "outer_alias": "tsk", "inner_alias": "acct", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02531", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(value, name, amount, salary)\n requests(status, level, type, date)\nTask: Select id from projects where type exists in requests for the same code.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02532", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(amount, value, level, name)\n regions(status, type, code, level)\nTask: Find name from staff where value exceeds the average salary from regions for the same code.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE value > (\n SELECT AVG(salary) FROM regions AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "regions", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02533", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(code, level, status, date)\n regions(level, amount, value, name)\nTask: Retrieve id from requests with amount above the COUNT(value) of regions rows sharing the same level.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE amount > (\n SELECT COUNT(value) FROM regions AS rgn\n WHERE rgn.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "regions", "outer_alias": "ordr", "inner_alias": "rgn", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02534", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(code, date, type, amount)\n requests(name, status, date, code)\nTask: Retrieve code from departments that have at least one corresponding entry in requests sharing the same status.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "requests", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02535", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(status, code, value, date)\n accounts(value, level, amount, status)\nTask: Find salary from departments where a matching record exists in accounts with the same type.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "accounts", "outer_alias": "dept", "inner_alias": "acct", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02536", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(date, salary, amount, level)\n invoices(amount, date, status, id)\nTask: Retrieve code from branches whose code is found in invoices rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE code IN (\n SELECT code FROM invoices AS inv\n WHERE inv.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "invoices", "outer_alias": "brc", "inner_alias": "inv", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02537", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(salary, code, status, value)\n transactions(amount, id, value, level)\nTask: Find value from invoices where a matching record exists in transactions with the same level.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "transactions", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "value", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02538", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(status, id, value, level)\n customers(status, name, salary, type)\nTask: Select id from branches where status exists in customers for the same id.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE status IN (\n SELECT status FROM customers AS cust\n WHERE cust.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "customers", "outer_alias": "brc", "inner_alias": "cust", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02539", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(amount, salary, name, code)\n orders(status, id, level, value)\nTask: Find salary from sales where a matching record exists in orders with the same status.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "orders", "outer_alias": "sale", "inner_alias": "ord", "proj_col": "salary", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02540", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(date, amount, code, level)\n invoices(amount, level, date, status)\nTask: Select amount from schedules where type exists in invoices for the same id.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "invoices", "outer_alias": "schd", "inner_alias": "inv", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02541", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(level, id, name, date)\n transactions(type, value, status, name)\nTask: Retrieve name from items with value above the MIN(amount) of transactions rows sharing the same status.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE value > (\n SELECT MIN(amount) FROM transactions AS txn\n WHERE txn.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "transactions", "outer_alias": "lne", "inner_alias": "txn", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02542", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(amount, name, salary, value)\n invoices(name, id, salary, date)\nTask: Find code from products where level appears in invoices entries with matching level.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE level IN (\n SELECT level FROM invoices AS inv\n WHERE inv.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "invoices", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02543", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(level, name, status, amount)\n branches(date, amount, id, code)\nTask: Retrieve salary from shipments that have at least one corresponding entry in branches sharing the same code.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "branches", "outer_alias": "shp", "inner_alias": "brc", "proj_col": "salary", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02544", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(value, amount, date, salary)\n employees(code, value, id, amount)\nTask: Retrieve id from orders whose code is found in employees rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02545", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(value, id, date, status)\n customers(level, status, date, value)\nTask: Find id from categories where a matching record exists in customers with the same code.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "customers", "outer_alias": "catg", "inner_alias": "cust", "proj_col": "id", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02546", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(name, id, amount, type)\n items(code, amount, level, value)\nTask: Find value from orders where status appears in items entries with matching level.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02547", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(value, code, name, salary)\n shipments(level, code, name, type)\nTask: Retrieve name from accounts that have at least one corresponding entry in shipments sharing the same code.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "shipments", "outer_alias": "acct", "inner_alias": "shp", "proj_col": "name", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02548", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(value, name, status, amount)\n employees(name, level, code, date)\nTask: Find id from transactions where a matching record exists in employees with the same id.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "id", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02549", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(salary, id, value, type)\n accounts(level, type, name, status)\nTask: Find id from shipments where amount exceeds the maximum amount from accounts for the same level.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE amount > (\n SELECT MAX(amount) FROM accounts AS acct\n WHERE acct.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "accounts", "outer_alias": "shp", "inner_alias": "acct", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02550", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(level, id, value, type)\n accounts(salary, name, status, type)\nTask: Retrieve id from managers whose id is found in accounts rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM accounts AS acct\n WHERE acct.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "accounts", "outer_alias": "mgr", "inner_alias": "acct", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02551", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(date, type, level, value)\n categories(name, type, amount, value)\nTask: Select name from sales where level exists in categories for the same level.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "categories", "outer_alias": "sale", "inner_alias": "catg", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02552", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(salary, type, code, level)\n items(salary, status, name, type)\nTask: Retrieve amount from projects that have at least one corresponding entry in items sharing the same id.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "items", "outer_alias": "prj", "inner_alias": "lne", "proj_col": "amount", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02553", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(name, date, id, status)\n transactions(status, salary, date, type)\nTask: Find value from requests where a matching record exists in transactions with the same status.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "value", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02554", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(value, salary, type, amount)\n staff(amount, level, code, status)\nTask: Find amount from invoices where a matching record exists in staff with the same id.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "staff", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02555", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(status, salary, id, level)\n invoices(status, salary, date, name)\nTask: Select salary from branches where level exists in invoices for the same id.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE level IN (\n SELECT level FROM invoices AS inv\n WHERE inv.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "invoices", "outer_alias": "brc", "inner_alias": "inv", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02556", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(id, code, value, date)\n departments(salary, id, date, code)\nTask: Find value from sales where value exceeds the minimum salary from departments for the same type.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE value > (\n SELECT MIN(salary) FROM departments AS dept\n WHERE dept.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "departments", "outer_alias": "sale", "inner_alias": "dept", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02557", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(value, date, code, amount)\n branches(name, salary, level, date)\nTask: Select amount from transactions where status exists in branches for the same status.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "branches", "outer_alias": "txn", "inner_alias": "brc", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02558", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(level, amount, status, date)\n tasks(type, status, id, level)\nTask: Retrieve name from employees whose code is found in tasks rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE code IN (\n SELECT code FROM tasks AS tsk\n WHERE tsk.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "tasks", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02559", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(amount, salary, status, date)\n staff(amount, status, salary, id)\nTask: Find id from products where amount exceeds the maximum amount from staff for the same type.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE amount > (\n SELECT MAX(amount) FROM staff AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02560", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(status, date, amount, level)\n sales(code, amount, value, salary)\nTask: Find code from items where status appears in sales entries with matching level.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "sales", "outer_alias": "lne", "inner_alias": "sale", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02561", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(salary, value, date, id)\n products(value, type, code, date)\nTask: Find amount from managers where level appears in products entries with matching id.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02562", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(name, code, level, amount)\n staff(level, name, date, amount)\nTask: Retrieve salary from regions whose id is found in staff rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE id IN (\n SELECT id FROM staff AS empl\n WHERE empl.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "staff", "outer_alias": "rgn", "inner_alias": "empl", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02563", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(value, amount, id, type)\n orders(status, date, salary, name)\nTask: Retrieve salary from tasks whose type is found in orders rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM orders AS ord\n WHERE ord.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "orders", "outer_alias": "tsk", "inner_alias": "ord", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02564", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(amount, type, code, value)\n shipments(salary, code, level, amount)\nTask: Find name from branches where type appears in shipments entries with matching code.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE type IN (\n SELECT type FROM shipments AS shp\n WHERE shp.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "shipments", "outer_alias": "brc", "inner_alias": "shp", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02565", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(amount, code, type, value)\n employees(code, name, id, type)\nTask: Retrieve value from regions with value above the AVG(salary) of employees rows sharing the same code.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE value > (\n SELECT AVG(salary) FROM employees AS emp\n WHERE emp.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02566", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(amount, type, value, name)\n staff(type, code, name, date)\nTask: Select value from requests where code exists in staff for the same type.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM staff AS empl\n WHERE empl.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "staff", "outer_alias": "ordr", "inner_alias": "empl", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02567", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(id, status, code, type)\n regions(date, code, salary, id)\nTask: Find id from branches where value exceeds the total salary from regions for the same code.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE value > (\n SELECT SUM(salary) FROM regions AS rgn\n WHERE rgn.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "regions", "outer_alias": "brc", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02568", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(level, name, id, status)\n schedules(level, code, id, name)\nTask: Retrieve code from invoices whose code is found in schedules rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE code IN (\n SELECT code FROM schedules AS schd\n WHERE schd.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02569", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(level, salary, name, date)\n customers(code, date, amount, value)\nTask: Find id from categories where level appears in customers entries with matching code.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "customers", "outer_alias": "catg", "inner_alias": "cust", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02570", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(code, name, id, value)\n departments(id, salary, name, level)\nTask: Retrieve amount from customers that have at least one corresponding entry in departments sharing the same type.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "departments", "outer_alias": "cust", "inner_alias": "dept", "proj_col": "amount", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02571", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(id, status, date, type)\n transactions(status, salary, code, date)\nTask: Find value from requests where a matching record exists in transactions with the same level.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "value", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02572", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(salary, status, date, value)\n schedules(date, name, id, value)\nTask: Select value from categories where type exists in schedules for the same status.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "schedules", "outer_alias": "catg", "inner_alias": "schd", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02573", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(id, status, value, salary)\n transactions(name, amount, status, type)\nTask: Find value from staff where amount exceeds the total amount from transactions for the same id.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE amount > (\n SELECT SUM(amount) FROM transactions AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "transactions", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02574", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(level, status, name, value)\n tasks(type, level, date, salary)\nTask: Select code from requests where type exists in tasks for the same status.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "tasks", "outer_alias": "ordr", "inner_alias": "tsk", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02575", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(name, id, date, status)\n transactions(amount, level, name, value)\nTask: Select id from invoices where type exists in transactions for the same code.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM transactions AS txn\n WHERE txn.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "transactions", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02576", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(level, status, type, date)\n sales(value, date, status, id)\nTask: Retrieve id from managers whose id is found in sales rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM sales AS sale\n WHERE sale.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "sales", "outer_alias": "mgr", "inner_alias": "sale", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02577", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(value, name, amount, date)\n categories(level, type, date, amount)\nTask: Retrieve value from projects that have at least one corresponding entry in categories sharing the same code.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "categories", "outer_alias": "prj", "inner_alias": "catg", "proj_col": "value", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02578", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(salary, level, name, code)\n regions(salary, date, type, id)\nTask: Retrieve value from customers with amount above the AVG(amount) of regions rows sharing the same status.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE amount > (\n SELECT AVG(amount) FROM regions AS rgn\n WHERE rgn.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02579", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(date, value, id, type)\n requests(id, type, name, date)\nTask: Retrieve name from invoices with salary above the MAX(value) of requests rows sharing the same id.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE salary > (\n SELECT MAX(value) FROM requests AS ordr\n WHERE ordr.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "requests", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02580", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(id, type, status, salary)\n departments(id, salary, value, level)\nTask: Find id from products where a matching record exists in departments with the same type.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "departments", "outer_alias": "prod", "inner_alias": "dept", "proj_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02581", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(salary, status, type, amount)\n requests(level, status, value, date)\nTask: Find value from accounts where value exceeds the average amount from requests for the same status.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE value > (\n SELECT AVG(amount) FROM requests AS ordr\n WHERE ordr.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "requests", "outer_alias": "acct", "inner_alias": "ordr", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02582", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(level, code, status, name)\n branches(type, status, level, name)\nTask: Select value from projects where id exists in branches for the same code.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE id IN (\n SELECT id FROM branches AS brc\n WHERE brc.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "branches", "outer_alias": "prj", "inner_alias": "brc", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02583", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(value, salary, amount, name)\n tasks(value, amount, type, name)\nTask: Find code from departments where salary exceeds the count of salary from tasks for the same status.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE salary > (\n SELECT COUNT(salary) FROM tasks AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02584", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(id, salary, type, amount)\n accounts(date, amount, value, name)\nTask: Retrieve id from projects with salary above the MIN(salary) of accounts rows sharing the same type.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE salary > (\n SELECT MIN(salary) FROM accounts AS acct\n WHERE acct.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "accounts", "outer_alias": "prj", "inner_alias": "acct", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02585", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(type, code, level, id)\n orders(date, code, level, amount)\nTask: Retrieve amount from shipments with salary above the COUNT(amount) of orders rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE salary > (\n SELECT COUNT(amount) FROM orders AS ord\n WHERE ord.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "orders", "outer_alias": "shp", "inner_alias": "ord", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02586", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(name, code, level, salary)\n transactions(status, type, code, value)\nTask: Find id from tasks where salary exceeds the maximum amount from transactions for the same level.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE salary > (\n SELECT MAX(amount) FROM transactions AS txn\n WHERE txn.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "transactions", "outer_alias": "tsk", "inner_alias": "txn", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02587", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(level, salary, id, status)\n items(value, type, id, code)\nTask: Select id from shipments where type exists in items for the same level.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "items", "outer_alias": "shp", "inner_alias": "lne", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02588", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(id, name, value, code)\n shipments(id, type, status, level)\nTask: Select code from items where code exists in shipments for the same id.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "shipments", "outer_alias": "lne", "inner_alias": "shp", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02589", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(level, code, date, salary)\n staff(code, status, amount, level)\nTask: Find salary from categories where value exceeds the maximum amount from staff for the same status.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE value > (\n SELECT MAX(amount) FROM staff AS empl\n WHERE empl.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "staff", "outer_alias": "catg", "inner_alias": "empl", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02590", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(level, code, name, salary)\n staff(type, level, salary, date)\nTask: Retrieve value from tasks whose code is found in staff rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE code IN (\n SELECT code FROM staff AS empl\n WHERE empl.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "staff", "outer_alias": "tsk", "inner_alias": "empl", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02591", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(status, date, id, level)\n shipments(code, salary, name, value)\nTask: Find name from items where amount exceeds the minimum value from shipments for the same level.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE amount > (\n SELECT MIN(value) FROM shipments AS shp\n WHERE shp.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "shipments", "outer_alias": "lne", "inner_alias": "shp", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02592", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(date, amount, status, name)\n regions(name, value, level, status)\nTask: Find value from items where a matching record exists in regions with the same type.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "regions", "outer_alias": "lne", "inner_alias": "rgn", "proj_col": "value", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02593", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(id, date, type, code)\n employees(amount, value, level, id)\nTask: Retrieve id from tasks with salary above the COUNT(value) of employees rows sharing the same code.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE salary > (\n SELECT COUNT(value) FROM employees AS emp\n WHERE emp.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "employees", "outer_alias": "tsk", "inner_alias": "emp", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02594", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(code, date, name, type)\n invoices(value, amount, name, level)\nTask: Retrieve salary from tasks that have at least one corresponding entry in invoices sharing the same level.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "invoices", "outer_alias": "tsk", "inner_alias": "inv", "proj_col": "salary", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02595", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(value, amount, level, salary)\n customers(id, date, amount, status)\nTask: Select id from transactions where level exists in customers for the same code.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "customers", "outer_alias": "txn", "inner_alias": "cust", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02596", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(code, level, id, salary)\n branches(type, value, amount, salary)\nTask: Select name from departments where status exists in branches for the same level.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "branches", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02597", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(name, type, value, salary)\n orders(value, name, amount, date)\nTask: Retrieve value from employees with value above the MIN(salary) of orders rows sharing the same code.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE value > (\n SELECT MIN(salary) FROM orders AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "orders", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02598", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(id, status, level, code)\n customers(name, amount, value, level)\nTask: Retrieve salary from managers that have at least one corresponding entry in customers sharing the same level.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "customers", "outer_alias": "mgr", "inner_alias": "cust", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02599", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(value, salary, id, amount)\n schedules(type, status, salary, amount)\nTask: Find salary from tasks where a matching record exists in schedules with the same code.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "schedules", "outer_alias": "tsk", "inner_alias": "schd", "proj_col": "salary", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02600", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(code, level, value, amount)\n staff(name, level, code, amount)\nTask: Find value from tasks where a matching record exists in staff with the same id.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "staff", "outer_alias": "tsk", "inner_alias": "empl", "proj_col": "value", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02601", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(type, code, status, level)\n items(salary, id, value, status)\nTask: Find value from customers where salary exceeds the minimum salary from items for the same status.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE salary > (\n SELECT MIN(salary) FROM items AS lne\n WHERE lne.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "items", "outer_alias": "cust", "inner_alias": "lne", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02602", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(status, value, amount, level)\n staff(level, name, date, value)\nTask: Retrieve value from departments whose level is found in staff rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02603", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(date, id, value, level)\n transactions(name, value, salary, type)\nTask: Retrieve id from customers with amount above the MAX(amount) of transactions rows sharing the same code.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE amount > (\n SELECT MAX(amount) FROM transactions AS txn\n WHERE txn.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "transactions", "outer_alias": "cust", "inner_alias": "txn", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02604", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(level, date, id, amount)\n sales(salary, date, status, amount)\nTask: Retrieve code from tasks that have at least one corresponding entry in sales sharing the same id.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "sales", "outer_alias": "tsk", "inner_alias": "sale", "proj_col": "code", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02605", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(type, id, date, name)\n invoices(name, id, level, code)\nTask: Retrieve salary from requests whose id is found in invoices rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE id IN (\n SELECT id FROM invoices AS inv\n WHERE inv.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "invoices", "outer_alias": "ordr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02606", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(date, id, code, amount)\n orders(type, level, name, status)\nTask: Retrieve amount from sales whose type is found in orders rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE type IN (\n SELECT type FROM orders AS ord\n WHERE ord.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "orders", "outer_alias": "sale", "inner_alias": "ord", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02607", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(salary, level, value, date)\n invoices(code, amount, id, status)\nTask: Find salary from managers where salary exceeds the average salary from invoices for the same code.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE salary > (\n SELECT AVG(salary) FROM invoices AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "invoices", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02608", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(level, salary, type, code)\n departments(date, value, code, amount)\nTask: Find id from employees where salary exceeds the total amount from departments for the same level.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE salary > (\n SELECT SUM(amount) FROM departments AS dept\n WHERE dept.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "departments", "outer_alias": "emp", "inner_alias": "dept", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02609", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(date, amount, name, salary)\n managers(level, type, amount, code)\nTask: Retrieve name from accounts that have at least one corresponding entry in managers sharing the same type.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "managers", "outer_alias": "acct", "inner_alias": "mgr", "proj_col": "name", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02610", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(salary, status, name, code)\n schedules(date, amount, code, id)\nTask: Find amount from orders where level appears in schedules entries with matching id.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE level IN (\n SELECT level FROM schedules AS schd\n WHERE schd.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "schedules", "outer_alias": "ord", "inner_alias": "schd", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02611", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(type, status, amount, date)\n branches(amount, date, id, name)\nTask: Find value from staff where value exceeds the maximum salary from branches for the same id.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE value > (\n SELECT MAX(salary) FROM branches AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "branches", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02612", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(code, type, name, value)\n transactions(amount, date, salary, status)\nTask: Retrieve code from orders with salary above the SUM(value) of transactions rows sharing the same id.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE salary > (\n SELECT SUM(value) FROM transactions AS txn\n WHERE txn.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02613", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(level, type, name, value)\n departments(status, value, salary, date)\nTask: Retrieve value from tasks with value above the AVG(amount) of departments rows sharing the same status.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE value > (\n SELECT AVG(amount) FROM departments AS dept\n WHERE dept.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "departments", "outer_alias": "tsk", "inner_alias": "dept", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02614", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(amount, id, name, type)\n transactions(id, name, code, value)\nTask: Find salary from requests where id appears in transactions entries with matching status.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE id IN (\n SELECT id FROM transactions AS txn\n WHERE txn.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02615", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(type, id, value, name)\n departments(code, amount, status, id)\nTask: Find id from branches where a matching record exists in departments with the same status.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "departments", "outer_alias": "brc", "inner_alias": "dept", "proj_col": "id", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02616", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(salary, id, name, amount)\n accounts(salary, status, date, amount)\nTask: Retrieve code from regions that have at least one corresponding entry in accounts sharing the same level.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "accounts", "outer_alias": "rgn", "inner_alias": "acct", "proj_col": "code", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02617", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(type, id, level, code)\n staff(date, name, amount, type)\nTask: Retrieve code from products with value above the SUM(salary) of staff rows sharing the same level.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE value > (\n SELECT SUM(salary) FROM staff AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02618", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(type, salary, value, name)\n shipments(salary, status, code, id)\nTask: Find amount from managers where code appears in shipments entries with matching code.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "shipments", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02619", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(date, amount, value, id)\n sales(type, status, salary, value)\nTask: Find salary from items where a matching record exists in sales with the same code.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "sales", "outer_alias": "lne", "inner_alias": "sale", "proj_col": "salary", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02620", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(date, name, salary, status)\n items(level, status, value, date)\nTask: Find code from customers where a matching record exists in items with the same code.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "items", "outer_alias": "cust", "inner_alias": "lne", "proj_col": "code", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02621", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(status, name, amount, date)\n shipments(salary, date, level, type)\nTask: Retrieve amount from transactions whose level is found in shipments rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM shipments AS shp\n WHERE shp.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "shipments", "outer_alias": "txn", "inner_alias": "shp", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02622", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(name, amount, salary, date)\n orders(id, salary, date, level)\nTask: Retrieve amount from employees that have at least one corresponding entry in orders sharing the same code.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "orders", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02623", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(code, value, salary, id)\n products(type, name, id, date)\nTask: Retrieve id from regions with salary above the AVG(salary) of products rows sharing the same status.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE salary > (\n SELECT AVG(salary) FROM products AS prod\n WHERE prod.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02624", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(status, code, salary, amount)\n shipments(value, type, name, date)\nTask: Retrieve amount from staff whose id is found in shipments rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE id IN (\n SELECT id FROM shipments AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02625", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(id, level, status, salary)\n regions(status, id, value, name)\nTask: Find amount from invoices where amount exceeds the count of amount from regions for the same status.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE amount > (\n SELECT COUNT(amount) FROM regions AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "regions", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02626", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(id, name, level, salary)\n managers(type, code, date, name)\nTask: Find value from sales where a matching record exists in managers with the same type.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "value", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02627", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(status, type, amount, date)\n managers(code, date, status, type)\nTask: Find code from categories where level appears in managers entries with matching code.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "managers", "outer_alias": "catg", "inner_alias": "mgr", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02628", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(salary, name, level, id)\n branches(salary, name, amount, type)\nTask: Find name from staff where amount exceeds the total salary from branches for the same id.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE amount > (\n SELECT SUM(salary) FROM branches AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "branches", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02629", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(amount, id, name, date)\n branches(value, amount, type, level)\nTask: Retrieve amount from shipments with value above the MIN(salary) of branches rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE value > (\n SELECT MIN(salary) FROM branches AS brc\n WHERE brc.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "branches", "outer_alias": "shp", "inner_alias": "brc", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02630", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(name, amount, level, code)\n products(name, date, status, value)\nTask: Retrieve value from staff that have at least one corresponding entry in products sharing the same code.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "products", "outer_alias": "empl", "inner_alias": "prod", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02631", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(salary, level, status, type)\n projects(name, date, id, value)\nTask: Find value from requests where a matching record exists in projects with the same code.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "projects", "outer_alias": "ordr", "inner_alias": "prj", "proj_col": "value", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02632", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(name, status, amount, level)\n products(name, date, level, code)\nTask: Retrieve amount from categories that have at least one corresponding entry in products sharing the same level.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "products", "outer_alias": "catg", "inner_alias": "prod", "proj_col": "amount", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02633", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(id, amount, salary, status)\n sales(status, type, date, salary)\nTask: Find amount from employees where level appears in sales entries with matching level.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE level IN (\n SELECT level FROM sales AS sale\n WHERE sale.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "sales", "outer_alias": "emp", "inner_alias": "sale", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02634", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(status, amount, type, code)\n items(date, type, amount, status)\nTask: Find name from departments where value exceeds the average salary from items for the same status.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE value > (\n SELECT AVG(salary) FROM items AS lne\n WHERE lne.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "items", "outer_alias": "dept", "inner_alias": "lne", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02635", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(date, status, level, name)\n regions(amount, name, id, level)\nTask: Find id from shipments where id appears in regions entries with matching level.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "regions", "outer_alias": "shp", "inner_alias": "rgn", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02636", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(amount, id, salary, code)\n products(value, date, status, id)\nTask: Select amount from categories where type exists in products for the same code.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE type IN (\n SELECT type FROM products AS prod\n WHERE prod.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "products", "outer_alias": "catg", "inner_alias": "prod", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02637", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(code, date, id, amount)\n managers(status, type, code, id)\nTask: Retrieve amount from departments with salary above the COUNT(salary) of managers rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE salary > (\n SELECT COUNT(salary) FROM managers AS mgr\n WHERE mgr.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "managers", "outer_alias": "dept", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02638", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(code, status, id, level)\n tasks(id, status, salary, value)\nTask: Find salary from items where amount exceeds the average salary from tasks for the same status.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE amount > (\n SELECT AVG(salary) FROM tasks AS tsk\n WHERE tsk.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "tasks", "outer_alias": "lne", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02639", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(type, status, value, amount)\n items(level, name, type, salary)\nTask: Retrieve salary from customers that have at least one corresponding entry in items sharing the same level.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "items", "outer_alias": "cust", "inner_alias": "lne", "proj_col": "salary", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02640", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(value, id, code, date)\n customers(date, level, code, type)\nTask: Retrieve name from shipments with salary above the MAX(amount) of customers rows sharing the same status.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE salary > (\n SELECT MAX(amount) FROM customers AS cust\n WHERE cust.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02641", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(status, value, id, name)\n staff(type, level, id, date)\nTask: Find name from schedules where a matching record exists in staff with the same status.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "staff", "outer_alias": "schd", "inner_alias": "empl", "proj_col": "name", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02642", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(type, date, value, amount)\n accounts(type, date, value, salary)\nTask: Retrieve amount from shipments whose id is found in accounts rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE id IN (\n SELECT id FROM accounts AS acct\n WHERE acct.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "accounts", "outer_alias": "shp", "inner_alias": "acct", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02643", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(date, id, type, value)\n tasks(status, salary, type, id)\nTask: Retrieve name from customers that have at least one corresponding entry in tasks sharing the same level.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "tasks", "outer_alias": "cust", "inner_alias": "tsk", "proj_col": "name", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02644", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(name, code, amount, value)\n accounts(type, level, code, date)\nTask: Retrieve name from categories that have at least one corresponding entry in accounts sharing the same level.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "accounts", "outer_alias": "catg", "inner_alias": "acct", "proj_col": "name", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02645", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(code, date, id, value)\n accounts(amount, name, status, salary)\nTask: Retrieve value from regions whose status is found in accounts rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE status IN (\n SELECT status FROM accounts AS acct\n WHERE acct.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "accounts", "outer_alias": "rgn", "inner_alias": "acct", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02646", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(date, code, value, name)\n customers(level, type, value, salary)\nTask: Find code from staff where status appears in customers entries with matching id.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE status IN (\n SELECT status FROM customers AS cust\n WHERE cust.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "customers", "outer_alias": "empl", "inner_alias": "cust", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02647", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(type, level, id, amount)\n schedules(value, id, status, level)\nTask: Find id from accounts where value exceeds the maximum value from schedules for the same level.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE value > (\n SELECT MAX(value) FROM schedules AS schd\n WHERE schd.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "schedules", "outer_alias": "acct", "inner_alias": "schd", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02648", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(id, type, name, code)\n requests(name, type, date, code)\nTask: Find salary from schedules where a matching record exists in requests with the same level.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "requests", "outer_alias": "schd", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02649", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(status, type, salary, code)\n transactions(level, status, salary, type)\nTask: Find name from requests where code appears in transactions entries with matching status.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02650", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(status, id, date, level)\n products(code, amount, value, status)\nTask: Retrieve code from shipments with value above the MIN(salary) of products rows sharing the same id.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE value > (\n SELECT MIN(salary) FROM products AS prod\n WHERE prod.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02651", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(type, code, level, amount)\n products(status, value, level, date)\nTask: Retrieve amount from branches that have at least one corresponding entry in products sharing the same status.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "products", "outer_alias": "brc", "inner_alias": "prod", "proj_col": "amount", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02652", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(code, type, date, name)\n staff(code, name, id, amount)\nTask: Retrieve code from departments that have at least one corresponding entry in staff sharing the same code.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02653", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(date, salary, type, value)\n categories(date, amount, status, level)\nTask: Find salary from regions where a matching record exists in categories with the same status.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "categories", "outer_alias": "rgn", "inner_alias": "catg", "proj_col": "salary", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02654", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(id, value, date, amount)\n managers(salary, code, value, name)\nTask: Select amount from accounts where id exists in managers for the same level.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "managers", "outer_alias": "acct", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02655", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(salary, date, code, level)\n requests(salary, value, type, level)\nTask: Retrieve id from transactions that have at least one corresponding entry in requests sharing the same type.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "requests", "outer_alias": "txn", "inner_alias": "ordr", "proj_col": "id", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02656", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(level, id, name, amount)\n invoices(salary, status, id, code)\nTask: Find name from items where id appears in invoices entries with matching type.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE id IN (\n SELECT id FROM invoices AS inv\n WHERE inv.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "invoices", "outer_alias": "lne", "inner_alias": "inv", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02657", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(level, name, value, salary)\n items(level, code, name, value)\nTask: Retrieve id from products that have at least one corresponding entry in items sharing the same code.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "items", "outer_alias": "prod", "inner_alias": "lne", "proj_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02658", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(level, date, type, code)\n categories(id, value, status, level)\nTask: Retrieve amount from items that have at least one corresponding entry in categories sharing the same code.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "amount", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02659", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(date, amount, salary, type)\n managers(status, type, salary, value)\nTask: Find name from branches where level appears in managers entries with matching id.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02660", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(name, id, type, amount)\n tasks(salary, name, id, type)\nTask: Retrieve salary from shipments that have at least one corresponding entry in tasks sharing the same level.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "salary", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02661", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(type, value, status, level)\n employees(type, id, salary, date)\nTask: Find salary from staff where a matching record exists in employees with the same code.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "salary", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02662", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(level, code, status, id)\n managers(amount, salary, name, level)\nTask: Retrieve name from customers with salary above the MIN(amount) of managers rows sharing the same level.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE salary > (\n SELECT MIN(amount) FROM managers AS mgr\n WHERE mgr.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "managers", "outer_alias": "cust", "inner_alias": "mgr", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02663", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(code, date, name, amount)\n orders(date, value, level, salary)\nTask: Find value from regions where amount exceeds the count of salary from orders for the same type.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE amount > (\n SELECT COUNT(salary) FROM orders AS ord\n WHERE ord.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "orders", "outer_alias": "rgn", "inner_alias": "ord", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02664", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(id, salary, type, amount)\n items(date, code, salary, id)\nTask: Select id from categories where id exists in items for the same level.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02665", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(salary, level, type, id)\n items(code, salary, date, name)\nTask: Select code from requests where status exists in items for the same status.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02666", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(name, value, code, status)\n schedules(code, type, name, level)\nTask: Find value from requests where a matching record exists in schedules with the same id.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "schedules", "outer_alias": "ordr", "inner_alias": "schd", "proj_col": "value", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02667", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(date, amount, name, level)\n projects(value, amount, date, salary)\nTask: Find value from categories where id appears in projects entries with matching code.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "projects", "outer_alias": "catg", "inner_alias": "prj", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02668", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(value, code, status, name)\n items(type, status, date, salary)\nTask: Find value from projects where amount exceeds the minimum value from items for the same type.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE amount > (\n SELECT MIN(value) FROM items AS lne\n WHERE lne.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "items", "outer_alias": "prj", "inner_alias": "lne", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02669", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(level, date, code, type)\n invoices(code, type, id, level)\nTask: Retrieve id from employees that have at least one corresponding entry in invoices sharing the same id.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02670", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(salary, value, level, date)\n departments(code, date, status, value)\nTask: Retrieve salary from orders whose id is found in departments rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE id IN (\n SELECT id FROM departments AS dept\n WHERE dept.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "departments", "outer_alias": "ord", "inner_alias": "dept", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02671", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(value, type, status, code)\n staff(amount, status, type, salary)\nTask: Retrieve salary from projects with value above the MAX(amount) of staff rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE value > (\n SELECT MAX(amount) FROM staff AS empl\n WHERE empl.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "staff", "outer_alias": "prj", "inner_alias": "empl", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02672", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(date, level, type, code)\n schedules(value, type, name, amount)\nTask: Select id from projects where code exists in schedules for the same id.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE code IN (\n SELECT code FROM schedules AS schd\n WHERE schd.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "schedules", "outer_alias": "prj", "inner_alias": "schd", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02673", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(type, date, level, code)\n categories(name, date, id, amount)\nTask: Select code from staff where id exists in categories for the same level.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "categories", "outer_alias": "empl", "inner_alias": "catg", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02674", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(type, id, date, status)\n regions(type, id, status, code)\nTask: Find code from managers where amount exceeds the maximum salary from regions for the same type.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE amount > (\n SELECT MAX(salary) FROM regions AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "regions", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02675", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(salary, level, date, status)\n orders(id, salary, value, name)\nTask: Find salary from categories where code appears in orders entries with matching level.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE code IN (\n SELECT code FROM orders AS ord\n WHERE ord.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "orders", "outer_alias": "catg", "inner_alias": "ord", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02676", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(date, value, id, type)\n products(code, id, level, name)\nTask: Retrieve amount from categories with salary above the MAX(amount) of products rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE salary > (\n SELECT MAX(amount) FROM products AS prod\n WHERE prod.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "products", "outer_alias": "catg", "inner_alias": "prod", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02677", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(status, amount, id, value)\n sales(id, amount, code, value)\nTask: Find name from shipments where amount exceeds the maximum salary from sales for the same level.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE amount > (\n SELECT MAX(salary) FROM sales AS sale\n WHERE sale.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "sales", "outer_alias": "shp", "inner_alias": "sale", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02678", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(level, name, status, amount)\n sales(level, code, status, value)\nTask: Find id from tasks where amount exceeds the minimum amount from sales for the same id.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE amount > (\n SELECT MIN(amount) FROM sales AS sale\n WHERE sale.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "sales", "outer_alias": "tsk", "inner_alias": "sale", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02679", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(level, name, value, amount)\n items(id, amount, value, type)\nTask: Retrieve code from customers with value above the COUNT(value) of items rows sharing the same type.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE value > (\n SELECT COUNT(value) FROM items AS lne\n WHERE lne.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "items", "outer_alias": "cust", "inner_alias": "lne", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02680", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(type, code, level, amount)\n items(level, type, name, status)\nTask: Find value from categories where level appears in items entries with matching status.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE level IN (\n SELECT level FROM items AS lne\n WHERE lne.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02681", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(date, level, salary, code)\n requests(salary, status, type, code)\nTask: Retrieve code from projects whose status is found in requests rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02682", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(level, amount, value, type)\n customers(level, amount, type, date)\nTask: Find value from invoices where a matching record exists in customers with the same type.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "customers", "outer_alias": "inv", "inner_alias": "cust", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02683", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(date, amount, code, salary)\n requests(status, name, type, date)\nTask: Retrieve code from categories whose status is found in requests rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "requests", "outer_alias": "catg", "inner_alias": "ordr", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02684", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(name, code, type, level)\n requests(salary, code, level, status)\nTask: Find name from tasks where a matching record exists in requests with the same level.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "name", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02685", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(name, type, code, date)\n employees(code, value, date, id)\nTask: Retrieve code from departments whose status is found in employees rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "employees", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02686", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(level, type, id, salary)\n accounts(code, date, level, name)\nTask: Retrieve code from schedules with amount above the COUNT(salary) of accounts rows sharing the same type.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE amount > (\n SELECT COUNT(salary) FROM accounts AS acct\n WHERE acct.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "accounts", "outer_alias": "schd", "inner_alias": "acct", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02687", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(amount, value, type, id)\n customers(id, name, amount, date)\nTask: Find amount from invoices where a matching record exists in customers with the same type.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "customers", "outer_alias": "inv", "inner_alias": "cust", "proj_col": "amount", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02688", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(name, level, type, date)\n projects(status, id, date, type)\nTask: Retrieve id from sales that have at least one corresponding entry in projects sharing the same code.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "projects", "outer_alias": "sale", "inner_alias": "prj", "proj_col": "id", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02689", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(date, value, type, code)\n accounts(value, level, status, id)\nTask: Find amount from staff where value exceeds the average salary from accounts for the same level.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE value > (\n SELECT AVG(salary) FROM accounts AS acct\n WHERE acct.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "accounts", "outer_alias": "empl", "inner_alias": "acct", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02690", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(name, id, level, amount)\n customers(level, salary, status, id)\nTask: Find name from departments where amount exceeds the average salary from customers for the same level.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE amount > (\n SELECT AVG(salary) FROM customers AS cust\n WHERE cust.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "customers", "outer_alias": "dept", "inner_alias": "cust", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02691", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(amount, name, status, code)\n accounts(type, salary, name, amount)\nTask: Find value from regions where amount exceeds the count of value from accounts for the same id.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE amount > (\n SELECT COUNT(value) FROM accounts AS acct\n WHERE acct.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "accounts", "outer_alias": "rgn", "inner_alias": "acct", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02692", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(salary, code, amount, value)\n shipments(value, status, amount, salary)\nTask: Find value from employees where salary exceeds the maximum value from shipments for the same level.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE salary > (\n SELECT MAX(value) FROM shipments AS shp\n WHERE shp.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "shipments", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02693", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(type, date, amount, level)\n managers(amount, level, type, id)\nTask: Find name from employees where a matching record exists in managers with the same type.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "name", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02694", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(date, value, type, id)\n accounts(type, code, value, id)\nTask: Find amount from departments where a matching record exists in accounts with the same code.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "accounts", "outer_alias": "dept", "inner_alias": "acct", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02695", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(type, name, id, value)\n accounts(amount, salary, type, date)\nTask: Retrieve amount from invoices with value above the MIN(salary) of accounts rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE value > (\n SELECT MIN(salary) FROM accounts AS acct\n WHERE acct.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02696", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(id, amount, type, level)\n requests(name, status, level, amount)\nTask: Select salary from sales where status exists in requests for the same id.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "requests", "outer_alias": "sale", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02697", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(code, level, type, name)\n employees(name, type, amount, salary)\nTask: Find id from departments where code appears in employees entries with matching code.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "employees", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02698", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(type, name, level, id)\n orders(level, date, name, status)\nTask: Retrieve name from tasks whose type is found in orders rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM orders AS ord\n WHERE ord.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "orders", "outer_alias": "tsk", "inner_alias": "ord", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02699", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(level, type, status, date)\n invoices(id, code, status, salary)\nTask: Retrieve salary from customers with amount above the MIN(salary) of invoices rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE amount > (\n SELECT MIN(salary) FROM invoices AS inv\n WHERE inv.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02700", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(type, code, name, salary)\n sales(status, level, id, name)\nTask: Find id from orders where status appears in sales entries with matching status.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "sales", "outer_alias": "ord", "inner_alias": "sale", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02701", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(name, status, salary, type)\n regions(name, type, salary, value)\nTask: Retrieve id from customers whose code is found in regions rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02702", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(amount, id, level, code)\n employees(status, level, date, salary)\nTask: Select name from departments where id exists in employees for the same level.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "employees", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02703", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(date, salary, name, status)\n items(value, amount, type, level)\nTask: Find id from schedules where salary exceeds the total amount from items for the same code.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE salary > (\n SELECT SUM(amount) FROM items AS lne\n WHERE lne.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02704", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(status, type, salary, amount)\n invoices(salary, date, type, level)\nTask: Find amount from schedules where a matching record exists in invoices with the same type.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "invoices", "outer_alias": "schd", "inner_alias": "inv", "proj_col": "amount", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02705", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(level, value, amount, code)\n products(salary, value, code, name)\nTask: Select id from schedules where id exists in products for the same type.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "products", "outer_alias": "schd", "inner_alias": "prod", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02706", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(salary, id, name, code)\n tasks(date, amount, name, type)\nTask: Find id from projects where level appears in tasks entries with matching id.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE level IN (\n SELECT level FROM tasks AS tsk\n WHERE tsk.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "tasks", "outer_alias": "prj", "inner_alias": "tsk", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02707", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(code, date, status, id)\n items(id, level, code, name)\nTask: Retrieve value from shipments that have at least one corresponding entry in items sharing the same code.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "items", "outer_alias": "shp", "inner_alias": "lne", "proj_col": "value", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02708", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(value, status, amount, code)\n regions(level, date, id, name)\nTask: Retrieve amount from projects whose level is found in regions rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "regions", "outer_alias": "prj", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02709", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(code, name, salary, status)\n regions(id, type, level, date)\nTask: Retrieve value from requests that have at least one corresponding entry in regions sharing the same id.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "regions", "outer_alias": "ordr", "inner_alias": "rgn", "proj_col": "value", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02710", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(code, id, type, amount)\n products(id, salary, type, value)\nTask: Select salary from schedules where id exists in products for the same type.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "products", "outer_alias": "schd", "inner_alias": "prod", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02711", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(id, amount, type, level)\n employees(salary, value, id, name)\nTask: Find value from schedules where level appears in employees entries with matching level.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02712", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(name, type, salary, code)\n orders(type, date, code, salary)\nTask: Retrieve code from shipments whose id is found in orders rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE id IN (\n SELECT id FROM orders AS ord\n WHERE ord.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "orders", "outer_alias": "shp", "inner_alias": "ord", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02713", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(status, amount, date, level)\n employees(type, value, level, code)\nTask: Find name from items where amount exceeds the minimum value from employees for the same level.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE amount > (\n SELECT MIN(value) FROM employees AS emp\n WHERE emp.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02714", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(salary, status, code, value)\n items(type, level, amount, value)\nTask: Find code from projects where salary exceeds the average value from items for the same id.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE salary > (\n SELECT AVG(value) FROM items AS lne\n WHERE lne.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "items", "outer_alias": "prj", "inner_alias": "lne", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02715", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(type, name, level, date)\n orders(id, salary, status, name)\nTask: Find name from regions where level appears in orders entries with matching level.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "orders", "outer_alias": "rgn", "inner_alias": "ord", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02716", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(value, date, salary, id)\n categories(level, amount, name, date)\nTask: Find value from regions where code appears in categories entries with matching id.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM categories AS catg\n WHERE catg.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "categories", "outer_alias": "rgn", "inner_alias": "catg", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02717", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(name, date, level, salary)\n tasks(status, value, date, level)\nTask: Find amount from branches where a matching record exists in tasks with the same id.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "amount", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02718", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(salary, type, id, level)\n managers(value, salary, status, date)\nTask: Retrieve id from items with salary above the COUNT(amount) of managers rows sharing the same type.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE salary > (\n SELECT COUNT(amount) FROM managers AS mgr\n WHERE mgr.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "managers", "outer_alias": "lne", "inner_alias": "mgr", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02719", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(date, type, code, amount)\n requests(type, date, status, amount)\nTask: Find name from sales where salary exceeds the minimum salary from requests for the same level.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE salary > (\n SELECT MIN(salary) FROM requests AS ordr\n WHERE ordr.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "requests", "outer_alias": "sale", "inner_alias": "ordr", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02720", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(status, code, name, value)\n shipments(name, id, salary, code)\nTask: Retrieve code from invoices with amount above the SUM(value) of shipments rows sharing the same level.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE amount > (\n SELECT SUM(value) FROM shipments AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02721", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(code, salary, date, type)\n orders(name, level, value, amount)\nTask: Retrieve amount from regions whose id is found in orders rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE id IN (\n SELECT id FROM orders AS ord\n WHERE ord.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "orders", "outer_alias": "rgn", "inner_alias": "ord", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02722", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(amount, status, code, salary)\n tasks(type, date, code, level)\nTask: Find value from departments where a matching record exists in tasks with the same id.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02723", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(status, value, name, id)\n regions(value, id, amount, salary)\nTask: Select id from schedules where id exists in regions for the same id.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02724", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(level, amount, code, status)\n customers(value, type, id, date)\nTask: Retrieve id from tasks whose type is found in customers rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "customers", "outer_alias": "tsk", "inner_alias": "cust", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02725", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(type, value, status, code)\n employees(level, date, name, salary)\nTask: Retrieve name from orders that have at least one corresponding entry in employees sharing the same status.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "name", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02726", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(amount, level, value, type)\n products(level, date, name, salary)\nTask: Find amount from accounts where a matching record exists in products with the same type.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "amount", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02727", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(name, date, value, salary)\n customers(salary, type, date, id)\nTask: Find amount from accounts where a matching record exists in customers with the same level.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "customers", "outer_alias": "acct", "inner_alias": "cust", "proj_col": "amount", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02728", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(value, type, status, id)\n shipments(date, salary, id, name)\nTask: Retrieve value from projects with salary above the AVG(salary) of shipments rows sharing the same id.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE salary > (\n SELECT AVG(salary) FROM shipments AS shp\n WHERE shp.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "shipments", "outer_alias": "prj", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02729", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(amount, code, status, date)\n transactions(salary, status, date, level)\nTask: Retrieve amount from staff whose status is found in transactions rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE status IN (\n SELECT status FROM transactions AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "transactions", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02730", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(amount, id, date, salary)\n projects(id, salary, date, amount)\nTask: Retrieve code from shipments with salary above the MIN(amount) of projects rows sharing the same status.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE salary > (\n SELECT MIN(amount) FROM projects AS prj\n WHERE prj.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "projects", "outer_alias": "shp", "inner_alias": "prj", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02731", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(date, amount, status, name)\n shipments(status, level, type, id)\nTask: Find value from products where a matching record exists in shipments with the same code.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "shipments", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02732", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(salary, code, value, id)\n employees(amount, name, date, type)\nTask: Find id from projects where a matching record exists in employees with the same code.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "employees", "outer_alias": "prj", "inner_alias": "emp", "proj_col": "id", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02733", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(amount, date, value, level)\n employees(id, code, date, level)\nTask: Find amount from products where amount exceeds the total salary from employees for the same id.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE amount > (\n SELECT SUM(salary) FROM employees AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "employees", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02734", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(code, date, name, type)\n orders(code, type, name, value)\nTask: Find code from requests where level appears in orders entries with matching level.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "orders", "outer_alias": "ordr", "inner_alias": "ord", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02735", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(status, id, type, name)\n categories(id, code, salary, type)\nTask: Find code from orders where salary exceeds the minimum value from categories for the same id.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE salary > (\n SELECT MIN(value) FROM categories AS catg\n WHERE catg.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "categories", "outer_alias": "ord", "inner_alias": "catg", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02736", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(type, date, salary, amount)\n departments(date, salary, name, id)\nTask: Retrieve id from schedules that have at least one corresponding entry in departments sharing the same type.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "departments", "outer_alias": "schd", "inner_alias": "dept", "proj_col": "id", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02737", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(name, id, level, type)\n schedules(level, type, status, value)\nTask: Find id from accounts where value exceeds the average amount from schedules for the same id.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE value > (\n SELECT AVG(amount) FROM schedules AS schd\n WHERE schd.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "schedules", "outer_alias": "acct", "inner_alias": "schd", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02738", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(type, code, id, value)\n employees(id, value, date, name)\nTask: Select value from products where type exists in employees for the same id.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "employees", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02739", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(value, date, code, status)\n schedules(amount, salary, level, name)\nTask: Select salary from projects where id exists in schedules for the same code.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "schedules", "outer_alias": "prj", "inner_alias": "schd", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02740", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(date, status, type, amount)\n staff(level, value, amount, code)\nTask: Find code from orders where a matching record exists in staff with the same status.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "staff", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02741", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(code, name, id, date)\n categories(id, level, status, type)\nTask: Retrieve salary from shipments with value above the MAX(salary) of categories rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE value > (\n SELECT MAX(salary) FROM categories AS catg\n WHERE catg.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "categories", "outer_alias": "shp", "inner_alias": "catg", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02742", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(status, level, salary, value)\n items(status, name, type, id)\nTask: Retrieve name from products whose id is found in items rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "items", "outer_alias": "prod", "inner_alias": "lne", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02743", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(amount, salary, id, value)\n managers(status, date, type, name)\nTask: Retrieve amount from transactions whose type is found in managers rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "managers", "outer_alias": "txn", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02744", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(type, level, date, name)\n employees(level, type, status, salary)\nTask: Select salary from staff where id exists in employees for the same level.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02745", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(date, status, name, value)\n projects(value, salary, id, amount)\nTask: Retrieve value from items with amount above the COUNT(value) of projects rows sharing the same status.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE amount > (\n SELECT COUNT(value) FROM projects AS prj\n WHERE prj.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "projects", "outer_alias": "lne", "inner_alias": "prj", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02746", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(value, amount, id, type)\n items(value, amount, name, date)\nTask: Find name from employees where value exceeds the minimum value from items for the same id.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE value > (\n SELECT MIN(value) FROM items AS lne\n WHERE lne.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "items", "outer_alias": "emp", "inner_alias": "lne", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02747", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(level, status, salary, date)\n items(amount, salary, type, level)\nTask: Retrieve amount from orders whose status is found in items rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02748", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(name, code, id, status)\n customers(date, name, status, code)\nTask: Find amount from regions where a matching record exists in customers with the same code.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "customers", "outer_alias": "rgn", "inner_alias": "cust", "proj_col": "amount", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02749", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(date, name, status, code)\n categories(type, value, level, code)\nTask: Select value from tasks where type exists in categories for the same level.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM categories AS catg\n WHERE catg.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "categories", "outer_alias": "tsk", "inner_alias": "catg", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02750", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(salary, level, name, id)\n shipments(value, status, date, id)\nTask: Find amount from branches where level appears in shipments entries with matching type.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE level IN (\n SELECT level FROM shipments AS shp\n WHERE shp.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "shipments", "outer_alias": "brc", "inner_alias": "shp", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02751", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(type, name, code, salary)\n sales(type, status, level, salary)\nTask: Select value from invoices where code exists in sales for the same code.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE code IN (\n SELECT code FROM sales AS sale\n WHERE sale.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "sales", "outer_alias": "inv", "inner_alias": "sale", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02752", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(salary, date, type, id)\n branches(code, salary, amount, level)\nTask: Retrieve code from shipments with amount above the MIN(amount) of branches rows sharing the same status.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE amount > (\n SELECT MIN(amount) FROM branches AS brc\n WHERE brc.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "branches", "outer_alias": "shp", "inner_alias": "brc", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02753", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(value, date, amount, code)\n regions(name, status, date, code)\nTask: Find name from products where a matching record exists in regions with the same id.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02754", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(level, type, amount, salary)\n schedules(status, value, level, type)\nTask: Retrieve salary from departments with value above the MAX(value) of schedules rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE value > (\n SELECT MAX(value) FROM schedules AS schd\n WHERE schd.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "schedules", "outer_alias": "dept", "inner_alias": "schd", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02755", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(level, date, name, value)\n requests(status, amount, name, id)\nTask: Retrieve id from schedules with value above the COUNT(amount) of requests rows sharing the same level.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE value > (\n SELECT COUNT(amount) FROM requests AS ordr\n WHERE ordr.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "requests", "outer_alias": "schd", "inner_alias": "ordr", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02756", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(amount, code, id, level)\n orders(type, salary, code, date)\nTask: Find salary from items where a matching record exists in orders with the same code.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "orders", "outer_alias": "lne", "inner_alias": "ord", "proj_col": "salary", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02757", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(level, salary, id, type)\n categories(date, code, amount, level)\nTask: Select amount from items where id exists in categories for the same status.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02758", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(salary, id, level, name)\n managers(salary, value, name, amount)\nTask: Find name from departments where value exceeds the average amount from managers for the same status.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE value > (\n SELECT AVG(amount) FROM managers AS mgr\n WHERE mgr.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "managers", "outer_alias": "dept", "inner_alias": "mgr", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02759", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(status, code, type, date)\n orders(code, level, salary, status)\nTask: Find salary from departments where id appears in orders entries with matching id.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE id IN (\n SELECT id FROM orders AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "orders", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02760", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(id, type, code, name)\n orders(status, level, type, amount)\nTask: Select amount from categories where id exists in orders for the same type.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE id IN (\n SELECT id FROM orders AS ord\n WHERE ord.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "orders", "outer_alias": "catg", "inner_alias": "ord", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02761", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(amount, status, code, type)\n projects(level, id, value, amount)\nTask: Find name from products where salary exceeds the total amount from projects for the same type.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE salary > (\n SELECT SUM(amount) FROM projects AS prj\n WHERE prj.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "projects", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02762", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(type, id, amount, status)\n accounts(code, amount, id, status)\nTask: Find value from invoices where a matching record exists in accounts with the same level.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "value", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02763", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(level, code, type, salary)\n staff(salary, level, status, id)\nTask: Find amount from requests where type appears in staff entries with matching level.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "staff", "outer_alias": "ordr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02764", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(code, date, level, status)\n schedules(code, name, type, value)\nTask: Select code from shipments where type exists in schedules for the same type.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "schedules", "outer_alias": "shp", "inner_alias": "schd", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02765", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(amount, status, name, id)\n orders(type, salary, id, name)\nTask: Find code from products where a matching record exists in orders with the same id.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "orders", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02766", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(name, date, status, amount)\n regions(id, level, date, value)\nTask: Find name from transactions where value exceeds the minimum value from regions for the same status.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE value > (\n SELECT MIN(value) FROM regions AS rgn\n WHERE rgn.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02767", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(value, salary, code, amount)\n orders(type, level, value, code)\nTask: Retrieve salary from managers that have at least one corresponding entry in orders sharing the same type.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "orders", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02768", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(code, type, value, name)\n managers(name, salary, id, amount)\nTask: Retrieve salary from requests with amount above the AVG(salary) of managers rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE amount > (\n SELECT AVG(salary) FROM managers AS mgr\n WHERE mgr.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "managers", "outer_alias": "ordr", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02769", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(salary, level, code, id)\n orders(id, level, code, name)\nTask: Retrieve name from staff that have at least one corresponding entry in orders sharing the same code.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "orders", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02770", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(type, status, id, name)\n items(date, type, id, level)\nTask: Retrieve id from customers with salary above the SUM(salary) of items rows sharing the same status.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE salary > (\n SELECT SUM(salary) FROM items AS lne\n WHERE lne.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "items", "outer_alias": "cust", "inner_alias": "lne", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02771", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(amount, value, code, type)\n regions(name, status, amount, code)\nTask: Select value from managers where status exists in regions for the same level.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE status IN (\n SELECT status FROM regions AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "regions", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02772", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(type, value, amount, date)\n products(id, salary, type, value)\nTask: Find name from customers where a matching record exists in products with the same status.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "products", "outer_alias": "cust", "inner_alias": "prod", "proj_col": "name", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02773", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(status, salary, value, level)\n projects(type, id, level, name)\nTask: Retrieve id from sales whose level is found in projects rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "projects", "outer_alias": "sale", "inner_alias": "prj", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02774", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(salary, amount, level, date)\n products(name, type, value, id)\nTask: Select amount from transactions where level exists in products for the same status.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02775", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(code, salary, value, id)\n customers(status, id, salary, code)\nTask: Find code from requests where a matching record exists in customers with the same type.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "customers", "outer_alias": "ordr", "inner_alias": "cust", "proj_col": "code", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02776", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(date, amount, value, code)\n requests(salary, level, status, id)\nTask: Retrieve value from customers whose code is found in requests rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "requests", "outer_alias": "cust", "inner_alias": "ordr", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02777", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(name, status, date, amount)\n employees(level, name, type, code)\nTask: Retrieve id from schedules with value above the SUM(amount) of employees rows sharing the same level.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE value > (\n SELECT SUM(amount) FROM employees AS emp\n WHERE emp.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02778", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(amount, status, salary, name)\n transactions(salary, date, name, level)\nTask: Find id from accounts where status appears in transactions entries with matching id.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE status IN (\n SELECT status FROM transactions AS txn\n WHERE txn.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "transactions", "outer_alias": "acct", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02779", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(status, name, amount, type)\n orders(value, date, level, type)\nTask: Find id from categories where amount exceeds the minimum salary from orders for the same type.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE amount > (\n SELECT MIN(salary) FROM orders AS ord\n WHERE ord.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "orders", "outer_alias": "catg", "inner_alias": "ord", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02780", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(salary, type, level, name)\n regions(amount, salary, id, type)\nTask: Retrieve code from schedules that have at least one corresponding entry in regions sharing the same status.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "code", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02781", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(level, name, id, type)\n managers(type, amount, date, salary)\nTask: Retrieve salary from requests that have at least one corresponding entry in managers sharing the same level.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "managers", "outer_alias": "ordr", "inner_alias": "mgr", "proj_col": "salary", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02782", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(type, amount, status, date)\n sales(code, amount, date, salary)\nTask: Retrieve value from accounts that have at least one corresponding entry in sales sharing the same type.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "sales", "outer_alias": "acct", "inner_alias": "sale", "proj_col": "value", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02783", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(code, status, salary, name)\n categories(salary, value, level, name)\nTask: Find amount from sales where status appears in categories entries with matching code.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE status IN (\n SELECT status FROM categories AS catg\n WHERE catg.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "categories", "outer_alias": "sale", "inner_alias": "catg", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02784", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(status, date, value, code)\n managers(id, date, name, status)\nTask: Find id from accounts where code appears in managers entries with matching level.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE code IN (\n SELECT code FROM managers AS mgr\n WHERE mgr.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "managers", "outer_alias": "acct", "inner_alias": "mgr", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02785", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(id, type, code, date)\n tasks(name, code, status, amount)\nTask: Retrieve code from departments with value above the MIN(value) of tasks rows sharing the same code.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE value > (\n SELECT MIN(value) FROM tasks AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02786", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(level, name, status, code)\n products(level, status, code, value)\nTask: Find id from staff where a matching record exists in products with the same type.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "products", "outer_alias": "empl", "inner_alias": "prod", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02787", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(level, amount, value, type)\n schedules(value, status, type, level)\nTask: Retrieve code from accounts that have at least one corresponding entry in schedules sharing the same code.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "schedules", "outer_alias": "acct", "inner_alias": "schd", "proj_col": "code", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02788", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(date, type, status, level)\n projects(id, salary, level, name)\nTask: Retrieve salary from requests that have at least one corresponding entry in projects sharing the same status.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "projects", "outer_alias": "ordr", "inner_alias": "prj", "proj_col": "salary", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02789", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(name, date, status, type)\n orders(type, code, amount, date)\nTask: Retrieve amount from employees with amount above the SUM(salary) of orders rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE amount > (\n SELECT SUM(salary) FROM orders AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "orders", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02790", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(salary, level, amount, code)\n schedules(salary, level, type, code)\nTask: Retrieve value from invoices whose id is found in schedules rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02791", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(code, salary, type, level)\n accounts(id, type, value, amount)\nTask: Find id from regions where amount exceeds the maximum salary from accounts for the same code.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE amount > (\n SELECT MAX(salary) FROM accounts AS acct\n WHERE acct.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "accounts", "outer_alias": "rgn", "inner_alias": "acct", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02792", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(salary, id, name, code)\n orders(name, code, level, date)\nTask: Retrieve code from projects with amount above the MIN(value) of orders rows sharing the same code.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE amount > (\n SELECT MIN(value) FROM orders AS ord\n WHERE ord.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02793", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(value, level, code, type)\n employees(salary, amount, date, id)\nTask: Retrieve name from schedules that have at least one corresponding entry in employees sharing the same type.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "name", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02794", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(amount, id, status, type)\n items(salary, value, status, amount)\nTask: Find salary from sales where status appears in items entries with matching status.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "items", "outer_alias": "sale", "inner_alias": "lne", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02795", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(name, level, status, type)\n transactions(amount, date, value, code)\nTask: Find value from regions where id appears in transactions entries with matching type.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE id IN (\n SELECT id FROM transactions AS txn\n WHERE txn.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "transactions", "outer_alias": "rgn", "inner_alias": "txn", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02796", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(code, name, salary, date)\n categories(amount, date, level, salary)\nTask: Retrieve salary from shipments that have at least one corresponding entry in categories sharing the same id.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "categories", "outer_alias": "shp", "inner_alias": "catg", "proj_col": "salary", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02797", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(code, name, type, level)\n transactions(date, type, name, salary)\nTask: Retrieve amount from products with salary above the AVG(amount) of transactions rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE salary > (\n SELECT AVG(amount) FROM transactions AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02798", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(amount, status, date, type)\n transactions(name, salary, status, id)\nTask: Retrieve code from regions with value above the AVG(value) of transactions rows sharing the same status.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE value > (\n SELECT AVG(value) FROM transactions AS txn\n WHERE txn.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "transactions", "outer_alias": "rgn", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02799", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(type, id, value, level)\n managers(date, value, name, code)\nTask: Find id from departments where salary exceeds the count of value from managers for the same id.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE salary > (\n SELECT COUNT(value) FROM managers AS mgr\n WHERE mgr.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "managers", "outer_alias": "dept", "inner_alias": "mgr", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02800", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(amount, date, type, salary)\n categories(type, level, salary, name)\nTask: Retrieve value from customers that have at least one corresponding entry in categories sharing the same id.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "categories", "outer_alias": "cust", "inner_alias": "catg", "proj_col": "value", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02801", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(id, value, date, name)\n staff(type, value, name, salary)\nTask: Find id from branches where level appears in staff entries with matching id.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "staff", "outer_alias": "brc", "inner_alias": "empl", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02802", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(id, name, amount, type)\n sales(id, name, status, salary)\nTask: Select value from requests where status exists in sales for the same level.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "sales", "outer_alias": "ordr", "inner_alias": "sale", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02803", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(type, date, amount, level)\n branches(type, salary, value, amount)\nTask: Find code from tasks where a matching record exists in branches with the same code.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "branches", "outer_alias": "tsk", "inner_alias": "brc", "proj_col": "code", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02804", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(salary, type, name, level)\n employees(type, value, level, id)\nTask: Select amount from customers where code exists in employees for the same id.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02805", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(name, status, code, date)\n sales(amount, type, status, date)\nTask: Find name from tasks where amount exceeds the maximum amount from sales for the same code.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE amount > (\n SELECT MAX(amount) FROM sales AS sale\n WHERE sale.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "sales", "outer_alias": "tsk", "inner_alias": "sale", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02806", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(name, value, id, level)\n products(code, date, salary, status)\nTask: Retrieve salary from staff whose status is found in products rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "products", "outer_alias": "empl", "inner_alias": "prod", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02807", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(status, level, name, date)\n items(code, id, value, salary)\nTask: Retrieve id from shipments with salary above the MIN(salary) of items rows sharing the same id.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE salary > (\n SELECT MIN(salary) FROM items AS lne\n WHERE lne.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "items", "outer_alias": "shp", "inner_alias": "lne", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02808", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(type, salary, name, code)\n managers(name, status, date, value)\nTask: Find id from schedules where amount exceeds the maximum salary from managers for the same code.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE amount > (\n SELECT MAX(salary) FROM managers AS mgr\n WHERE mgr.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02809", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(status, type, value, id)\n categories(level, id, value, type)\nTask: Find value from orders where type appears in categories entries with matching id.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE type IN (\n SELECT type FROM categories AS catg\n WHERE catg.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "categories", "outer_alias": "ord", "inner_alias": "catg", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02810", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(type, amount, date, status)\n products(amount, code, id, salary)\nTask: Find salary from managers where level appears in products entries with matching level.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02811", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(name, amount, code, value)\n managers(date, value, type, name)\nTask: Retrieve code from orders that have at least one corresponding entry in managers sharing the same level.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "managers", "outer_alias": "ord", "inner_alias": "mgr", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02812", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(salary, name, code, level)\n managers(salary, name, code, value)\nTask: Find value from accounts where a matching record exists in managers with the same status.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "managers", "outer_alias": "acct", "inner_alias": "mgr", "proj_col": "value", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02813", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(value, level, name, id)\n shipments(status, code, id, value)\nTask: Select salary from items where type exists in shipments for the same level.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE type IN (\n SELECT type FROM shipments AS shp\n WHERE shp.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "shipments", "outer_alias": "lne", "inner_alias": "shp", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02814", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(name, amount, type, status)\n items(code, id, amount, date)\nTask: Find amount from orders where salary exceeds the average value from items for the same type.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE salary > (\n SELECT AVG(value) FROM items AS lne\n WHERE lne.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02815", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(name, type, id, level)\n staff(salary, code, id, type)\nTask: Find value from orders where code appears in staff entries with matching status.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE code IN (\n SELECT code FROM staff AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "staff", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02816", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(code, date, level, type)\n products(name, value, salary, date)\nTask: Select name from orders where status exists in products for the same level.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "products", "outer_alias": "ord", "inner_alias": "prod", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02817", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(id, status, level, salary)\n regions(amount, id, name, code)\nTask: Retrieve salary from products that have at least one corresponding entry in regions sharing the same type.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02818", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(name, date, type, code)\n requests(id, amount, date, status)\nTask: Find name from accounts where value exceeds the total amount from requests for the same type.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE value > (\n SELECT SUM(amount) FROM requests AS ordr\n WHERE ordr.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "requests", "outer_alias": "acct", "inner_alias": "ordr", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02819", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(value, type, date, name)\n items(salary, amount, name, id)\nTask: Retrieve amount from managers whose id is found in items rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "items", "outer_alias": "mgr", "inner_alias": "lne", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02820", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(value, name, date, salary)\n customers(date, salary, amount, name)\nTask: Select salary from managers where type exists in customers for the same code.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "customers", "outer_alias": "mgr", "inner_alias": "cust", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02821", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(salary, level, amount, value)\n categories(type, salary, name, level)\nTask: Retrieve name from products with value above the MIN(salary) of categories rows sharing the same type.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE value > (\n SELECT MIN(salary) FROM categories AS catg\n WHERE catg.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "categories", "outer_alias": "prod", "inner_alias": "catg", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02822", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(level, name, value, status)\n managers(code, name, status, salary)\nTask: Retrieve name from branches whose level is found in managers rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02823", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(date, amount, type, code)\n staff(salary, amount, id, status)\nTask: Find amount from products where type appears in staff entries with matching status.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02824", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(value, date, level, id)\n projects(code, type, value, level)\nTask: Retrieve value from customers that have at least one corresponding entry in projects sharing the same type.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "projects", "outer_alias": "cust", "inner_alias": "prj", "proj_col": "value", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02825", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(value, salary, type, status)\n requests(level, status, id, name)\nTask: Retrieve value from orders whose status is found in requests rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "requests", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02826", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(name, date, code, value)\n shipments(type, salary, id, amount)\nTask: Retrieve name from employees with salary above the MAX(value) of shipments rows sharing the same status.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE salary > (\n SELECT MAX(value) FROM shipments AS shp\n WHERE shp.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "shipments", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02827", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(level, name, type, date)\n staff(value, name, id, type)\nTask: Retrieve value from departments with value above the AVG(salary) of staff rows sharing the same level.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE value > (\n SELECT AVG(salary) FROM staff AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02828", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(date, id, salary, status)\n categories(level, name, value, id)\nTask: Find code from branches where a matching record exists in categories with the same code.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "categories", "outer_alias": "brc", "inner_alias": "catg", "proj_col": "code", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02829", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(date, level, type, salary)\n items(status, type, amount, date)\nTask: Find id from shipments where amount exceeds the minimum salary from items for the same id.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE amount > (\n SELECT MIN(salary) FROM items AS lne\n WHERE lne.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "items", "outer_alias": "shp", "inner_alias": "lne", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02830", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(level, type, id, amount)\n accounts(status, code, value, date)\nTask: Find value from items where amount exceeds the maximum amount from accounts for the same level.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE amount > (\n SELECT MAX(amount) FROM accounts AS acct\n WHERE acct.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "accounts", "outer_alias": "lne", "inner_alias": "acct", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02831", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(date, name, id, level)\n products(value, salary, amount, type)\nTask: Retrieve salary from categories that have at least one corresponding entry in products sharing the same status.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "products", "outer_alias": "catg", "inner_alias": "prod", "proj_col": "salary", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02832", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(salary, level, amount, code)\n invoices(date, name, id, amount)\nTask: Select value from products where id exists in invoices for the same status.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE id IN (\n SELECT id FROM invoices AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "invoices", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02833", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(type, id, date, code)\n branches(amount, type, name, value)\nTask: Find salary from employees where level appears in branches entries with matching level.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "branches", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02834", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(level, name, status, type)\n regions(type, id, amount, code)\nTask: Find code from sales where amount exceeds the count of salary from regions for the same level.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE amount > (\n SELECT COUNT(salary) FROM regions AS rgn\n WHERE rgn.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "regions", "outer_alias": "sale", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02835", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(value, type, name, date)\n orders(code, value, id, salary)\nTask: Find value from projects where amount exceeds the minimum value from orders for the same level.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE amount > (\n SELECT MIN(value) FROM orders AS ord\n WHERE ord.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02836", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(amount, status, value, date)\n schedules(code, date, name, value)\nTask: Retrieve code from projects with salary above the MAX(amount) of schedules rows sharing the same level.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE salary > (\n SELECT MAX(amount) FROM schedules AS schd\n WHERE schd.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "schedules", "outer_alias": "prj", "inner_alias": "schd", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02837", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(salary, status, level, amount)\n transactions(type, id, salary, value)\nTask: Select value from items where type exists in transactions for the same code.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE type IN (\n SELECT type FROM transactions AS txn\n WHERE txn.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "transactions", "outer_alias": "lne", "inner_alias": "txn", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02838", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(value, level, salary, code)\n invoices(amount, date, name, salary)\nTask: Retrieve value from departments with value above the MAX(salary) of invoices rows sharing the same status.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE value > (\n SELECT MAX(salary) FROM invoices AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "invoices", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02839", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(name, level, amount, status)\n tasks(name, level, salary, amount)\nTask: Retrieve code from sales that have at least one corresponding entry in tasks sharing the same status.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "tasks", "outer_alias": "sale", "inner_alias": "tsk", "proj_col": "code", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02840", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(id, type, status, value)\n requests(status, amount, level, date)\nTask: Find name from projects where type appears in requests entries with matching id.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02841", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(code, amount, value, name)\n requests(name, code, level, amount)\nTask: Retrieve value from regions with value above the AVG(value) of requests rows sharing the same code.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE value > (\n SELECT AVG(value) FROM requests AS ordr\n WHERE ordr.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "requests", "outer_alias": "rgn", "inner_alias": "ordr", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02842", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(date, code, id, salary)\n customers(salary, code, name, value)\nTask: Find name from items where salary exceeds the count of salary from customers for the same status.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE salary > (\n SELECT COUNT(salary) FROM customers AS cust\n WHERE cust.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "customers", "outer_alias": "lne", "inner_alias": "cust", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02843", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(code, id, salary, date)\n employees(code, value, amount, salary)\nTask: Find amount from customers where value exceeds the minimum salary from employees for the same level.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE value > (\n SELECT MIN(salary) FROM employees AS emp\n WHERE emp.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02844", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(salary, level, amount, value)\n tasks(amount, status, id, level)\nTask: Find name from sales where type appears in tasks entries with matching status.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "tasks", "outer_alias": "sale", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02845", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(type, name, id, date)\n shipments(code, level, amount, status)\nTask: Find code from accounts where id appears in shipments entries with matching type.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM shipments AS shp\n WHERE shp.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "shipments", "outer_alias": "acct", "inner_alias": "shp", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02846", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(type, name, amount, date)\n transactions(value, level, salary, name)\nTask: Select value from products where level exists in transactions for the same type.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02847", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(level, code, id, amount)\n tasks(id, salary, name, type)\nTask: Find name from departments where type appears in tasks entries with matching code.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02848", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(type, value, code, level)\n customers(type, date, name, code)\nTask: Find code from branches where level appears in customers entries with matching id.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "customers", "outer_alias": "brc", "inner_alias": "cust", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02849", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(value, amount, id, code)\n shipments(id, code, value, status)\nTask: Retrieve name from employees whose id is found in shipments rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE id IN (\n SELECT id FROM shipments AS shp\n WHERE shp.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "shipments", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02850", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(code, salary, name, date)\n requests(value, date, code, type)\nTask: Select code from products where type exists in requests for the same id.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "requests", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02851", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(name, date, code, salary)\n regions(salary, name, status, id)\nTask: Retrieve id from transactions with value above the MAX(value) of regions rows sharing the same id.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE value > (\n SELECT MAX(value) FROM regions AS rgn\n WHERE rgn.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02852", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(amount, salary, name, id)\n orders(date, type, code, name)\nTask: Find value from shipments where amount exceeds the maximum amount from orders for the same code.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE amount > (\n SELECT MAX(amount) FROM orders AS ord\n WHERE ord.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "orders", "outer_alias": "shp", "inner_alias": "ord", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02853", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(salary, type, code, status)\n requests(level, value, status, id)\nTask: Find code from items where a matching record exists in requests with the same status.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "requests", "outer_alias": "lne", "inner_alias": "ordr", "proj_col": "code", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02854", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(type, level, name, status)\n transactions(amount, level, name, value)\nTask: Find salary from tasks where value exceeds the maximum salary from transactions for the same code.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE value > (\n SELECT MAX(salary) FROM transactions AS txn\n WHERE txn.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "transactions", "outer_alias": "tsk", "inner_alias": "txn", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02855", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(date, amount, id, name)\n tasks(name, salary, id, date)\nTask: Retrieve salary from departments with value above the AVG(amount) of tasks rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE value > (\n SELECT AVG(amount) FROM tasks AS tsk\n WHERE tsk.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02856", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(status, name, type, amount)\n branches(salary, id, date, amount)\nTask: Find amount from requests where salary exceeds the maximum amount from branches for the same type.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE salary > (\n SELECT MAX(amount) FROM branches AS brc\n WHERE brc.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "branches", "outer_alias": "ordr", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02857", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(level, id, name, code)\n regions(id, value, status, name)\nTask: Find id from categories where a matching record exists in regions with the same status.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "id", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02858", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(code, amount, name, level)\n employees(code, type, id, date)\nTask: Find id from invoices where level appears in employees entries with matching code.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "employees", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02859", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(amount, type, id, salary)\n employees(value, code, amount, salary)\nTask: Find salary from customers where status appears in employees entries with matching status.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02860", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(name, id, type, status)\n items(salary, date, code, amount)\nTask: Retrieve id from requests with salary above the SUM(amount) of items rows sharing the same level.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE salary > (\n SELECT SUM(amount) FROM items AS lne\n WHERE lne.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02861", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(id, salary, value, type)\n invoices(salary, date, amount, code)\nTask: Retrieve code from employees that have at least one corresponding entry in invoices sharing the same code.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02862", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(date, amount, type, name)\n projects(date, id, code, value)\nTask: Find code from shipments where a matching record exists in projects with the same code.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "projects", "outer_alias": "shp", "inner_alias": "prj", "proj_col": "code", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02863", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(salary, amount, name, status)\n items(salary, value, amount, code)\nTask: Retrieve code from customers that have at least one corresponding entry in items sharing the same id.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "items", "outer_alias": "cust", "inner_alias": "lne", "proj_col": "code", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02864", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(date, name, type, level)\n regions(id, type, value, status)\nTask: Select amount from tasks where id exists in regions for the same type.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "regions", "outer_alias": "tsk", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02865", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(amount, name, salary, level)\n projects(status, salary, date, code)\nTask: Find id from transactions where id appears in projects entries with matching status.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02866", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(code, amount, salary, value)\n shipments(name, type, value, id)\nTask: Find id from staff where id appears in shipments entries with matching level.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE id IN (\n SELECT id FROM shipments AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02867", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(code, salary, status, amount)\n branches(code, id, salary, amount)\nTask: Retrieve name from items whose status is found in branches rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02868", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(date, type, value, id)\n orders(value, amount, level, id)\nTask: Find name from projects where level appears in orders entries with matching code.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02869", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(salary, value, code, amount)\n managers(date, name, type, code)\nTask: Retrieve name from products that have at least one corresponding entry in managers sharing the same level.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "managers", "outer_alias": "prod", "inner_alias": "mgr", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02870", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(level, code, amount, salary)\n customers(status, level, code, date)\nTask: Select code from accounts where level exists in customers for the same level.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "customers", "outer_alias": "acct", "inner_alias": "cust", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02871", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(amount, id, type, value)\n requests(type, date, value, id)\nTask: Find value from orders where a matching record exists in requests with the same id.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "requests", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02872", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(date, amount, value, level)\n employees(name, amount, date, value)\nTask: Select salary from managers where id exists in employees for the same code.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "employees", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02873", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(name, amount, salary, code)\n staff(name, value, status, code)\nTask: Retrieve amount from projects that have at least one corresponding entry in staff sharing the same code.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "staff", "outer_alias": "prj", "inner_alias": "empl", "proj_col": "amount", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02874", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(id, amount, salary, date)\n accounts(type, amount, code, status)\nTask: Find value from products where a matching record exists in accounts with the same type.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "accounts", "outer_alias": "prod", "inner_alias": "acct", "proj_col": "value", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02875", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(type, salary, value, status)\n departments(name, type, salary, amount)\nTask: Find value from accounts where level appears in departments entries with matching type.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "departments", "outer_alias": "acct", "inner_alias": "dept", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02876", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(code, id, name, value)\n managers(level, date, status, type)\nTask: Retrieve amount from items with amount above the COUNT(value) of managers rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE amount > (\n SELECT COUNT(value) FROM managers AS mgr\n WHERE mgr.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "managers", "outer_alias": "lne", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02877", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(value, type, salary, amount)\n products(code, status, salary, amount)\nTask: Select name from transactions where type exists in products for the same id.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE type IN (\n SELECT type FROM products AS prod\n WHERE prod.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02878", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(value, code, type, id)\n products(code, amount, date, status)\nTask: Find value from orders where amount exceeds the total amount from products for the same type.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE amount > (\n SELECT SUM(amount) FROM products AS prod\n WHERE prod.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "products", "outer_alias": "ord", "inner_alias": "prod", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02879", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(id, value, level, date)\n customers(type, status, name, date)\nTask: Find amount from staff where a matching record exists in customers with the same type.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "customers", "outer_alias": "empl", "inner_alias": "cust", "proj_col": "amount", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02880", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(salary, level, date, status)\n departments(status, level, code, type)\nTask: Find salary from accounts where value exceeds the count of value from departments for the same code.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE value > (\n SELECT COUNT(value) FROM departments AS dept\n WHERE dept.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "departments", "outer_alias": "acct", "inner_alias": "dept", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02881", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(level, date, name, status)\n shipments(type, salary, amount, id)\nTask: Find code from sales where amount exceeds the average value from shipments for the same id.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE amount > (\n SELECT AVG(value) FROM shipments AS shp\n WHERE shp.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "shipments", "outer_alias": "sale", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02882", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(value, date, amount, salary)\n accounts(level, status, code, id)\nTask: Find name from managers where salary exceeds the average amount from accounts for the same type.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE salary > (\n SELECT AVG(amount) FROM accounts AS acct\n WHERE acct.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "accounts", "outer_alias": "mgr", "inner_alias": "acct", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02883", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(amount, id, level, date)\n sales(amount, name, status, salary)\nTask: Select salary from invoices where status exists in sales for the same code.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "sales", "outer_alias": "inv", "inner_alias": "sale", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02884", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(date, status, value, name)\n customers(type, value, name, id)\nTask: Retrieve salary from projects that have at least one corresponding entry in customers sharing the same level.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "customers", "outer_alias": "prj", "inner_alias": "cust", "proj_col": "salary", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02885", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(name, date, value, id)\n invoices(status, level, type, id)\nTask: Find name from schedules where a matching record exists in invoices with the same code.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "invoices", "outer_alias": "schd", "inner_alias": "inv", "proj_col": "name", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02886", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(salary, status, id, type)\n orders(type, date, amount, id)\nTask: Select value from categories where id exists in orders for the same status.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE id IN (\n SELECT id FROM orders AS ord\n WHERE ord.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "orders", "outer_alias": "catg", "inner_alias": "ord", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02887", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(level, salary, date, id)\n managers(id, value, type, amount)\nTask: Find amount from projects where a matching record exists in managers with the same status.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "managers", "outer_alias": "prj", "inner_alias": "mgr", "proj_col": "amount", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02888", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(level, date, salary, type)\n staff(salary, id, status, type)\nTask: Select value from items where type exists in staff for the same id.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "staff", "outer_alias": "lne", "inner_alias": "empl", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02889", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(level, amount, type, id)\n managers(type, code, amount, salary)\nTask: Find name from projects where code appears in managers entries with matching status.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE code IN (\n SELECT code FROM managers AS mgr\n WHERE mgr.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "managers", "outer_alias": "prj", "inner_alias": "mgr", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02890", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(salary, type, id, code)\n branches(value, status, level, type)\nTask: Find name from accounts where value exceeds the total salary from branches for the same type.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE value > (\n SELECT SUM(salary) FROM branches AS brc\n WHERE brc.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "branches", "outer_alias": "acct", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02891", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(status, amount, name, value)\n schedules(type, id, code, salary)\nTask: Find amount from projects where a matching record exists in schedules with the same id.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "schedules", "outer_alias": "prj", "inner_alias": "schd", "proj_col": "amount", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02892", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(status, date, id, salary)\n managers(id, code, type, value)\nTask: Find code from employees where value exceeds the total amount from managers for the same status.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE value > (\n SELECT SUM(amount) FROM managers AS mgr\n WHERE mgr.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02893", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(salary, name, amount, id)\n requests(salary, amount, value, name)\nTask: Find salary from managers where a matching record exists in requests with the same code.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02894", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(level, salary, id, amount)\n invoices(status, date, id, name)\nTask: Find code from shipments where value exceeds the maximum salary from invoices for the same code.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE value > (\n SELECT MAX(salary) FROM invoices AS inv\n WHERE inv.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "invoices", "outer_alias": "shp", "inner_alias": "inv", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02895", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(value, type, id, code)\n orders(value, id, amount, date)\nTask: Retrieve name from schedules with salary above the MAX(value) of orders rows sharing the same type.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE salary > (\n SELECT MAX(value) FROM orders AS ord\n WHERE ord.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "orders", "outer_alias": "schd", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02896", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(status, id, amount, level)\n transactions(level, status, salary, value)\nTask: Find id from invoices where salary exceeds the maximum value from transactions for the same code.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE salary > (\n SELECT MAX(value) FROM transactions AS txn\n WHERE txn.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "transactions", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02897", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(name, value, level, code)\n shipments(code, level, amount, salary)\nTask: Find code from customers where salary exceeds the maximum amount from shipments for the same type.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE salary > (\n SELECT MAX(amount) FROM shipments AS shp\n WHERE shp.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "shipments", "outer_alias": "cust", "inner_alias": "shp", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02898", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(name, status, value, level)\n projects(date, name, level, status)\nTask: Find amount from sales where a matching record exists in projects with the same type.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "projects", "outer_alias": "sale", "inner_alias": "prj", "proj_col": "amount", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02899", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(salary, value, date, type)\n accounts(status, name, amount, level)\nTask: Find value from products where status appears in accounts entries with matching id.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE status IN (\n SELECT status FROM accounts AS acct\n WHERE acct.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "accounts", "outer_alias": "prod", "inner_alias": "acct", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02900", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(status, level, code, value)\n transactions(level, type, name, value)\nTask: Retrieve salary from staff with salary above the COUNT(salary) of transactions rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE salary > (\n SELECT COUNT(salary) FROM transactions AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "transactions", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02901", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(salary, type, value, id)\n items(salary, value, id, code)\nTask: Find name from transactions where a matching record exists in items with the same id.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "items", "outer_alias": "txn", "inner_alias": "lne", "proj_col": "name", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02902", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(id, code, value, amount)\n tasks(type, date, name, amount)\nTask: Retrieve salary from staff that have at least one corresponding entry in tasks sharing the same status.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "tasks", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "salary", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02903", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(code, level, id, amount)\n regions(code, id, name, level)\nTask: Retrieve value from orders with value above the AVG(amount) of regions rows sharing the same level.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE value > (\n SELECT AVG(amount) FROM regions AS rgn\n WHERE rgn.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "regions", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02904", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(amount, status, name, level)\n products(date, value, id, salary)\nTask: Retrieve amount from projects that have at least one corresponding entry in products sharing the same level.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "products", "outer_alias": "prj", "inner_alias": "prod", "proj_col": "amount", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02905", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(type, code, status, date)\n departments(name, status, value, salary)\nTask: Find salary from schedules where type appears in departments entries with matching status.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE type IN (\n SELECT type FROM departments AS dept\n WHERE dept.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "departments", "outer_alias": "schd", "inner_alias": "dept", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02906", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(type, status, amount, id)\n employees(type, code, name, value)\nTask: Find code from transactions where amount exceeds the minimum amount from employees for the same level.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE amount > (\n SELECT MIN(amount) FROM employees AS emp\n WHERE emp.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02907", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(type, status, code, value)\n transactions(id, salary, code, level)\nTask: Select name from invoices where code exists in transactions for the same code.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "transactions", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02908", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(amount, salary, level, value)\n employees(amount, name, value, id)\nTask: Retrieve name from regions whose level is found in employees rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02909", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(salary, value, level, date)\n departments(salary, amount, level, value)\nTask: Find amount from accounts where a matching record exists in departments with the same code.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "departments", "outer_alias": "acct", "inner_alias": "dept", "proj_col": "amount", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02910", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(code, salary, value, id)\n employees(amount, salary, level, status)\nTask: Retrieve value from sales with amount above the AVG(value) of employees rows sharing the same type.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE amount > (\n SELECT AVG(value) FROM employees AS emp\n WHERE emp.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "employees", "outer_alias": "sale", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02911", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(code, value, level, amount)\n requests(status, type, salary, amount)\nTask: Retrieve code from branches with amount above the SUM(amount) of requests rows sharing the same level.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE amount > (\n SELECT SUM(amount) FROM requests AS ordr\n WHERE ordr.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "requests", "outer_alias": "brc", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02912", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(salary, type, value, amount)\n employees(type, level, name, date)\nTask: Find name from schedules where a matching record exists in employees with the same id.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "name", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02913", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(date, type, value, amount)\n products(code, salary, type, amount)\nTask: Retrieve name from shipments with salary above the SUM(value) of products rows sharing the same status.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE salary > (\n SELECT SUM(value) FROM products AS prod\n WHERE prod.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02914", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(status, name, type, level)\n shipments(salary, type, value, code)\nTask: Retrieve value from staff that have at least one corresponding entry in shipments sharing the same id.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02915", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(date, type, id, salary)\n products(id, type, amount, code)\nTask: Find value from categories where a matching record exists in products with the same id.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "products", "outer_alias": "catg", "inner_alias": "prod", "proj_col": "value", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02916", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(type, date, amount, value)\n products(status, value, date, name)\nTask: Retrieve code from regions that have at least one corresponding entry in products sharing the same level.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "code", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02917", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(code, date, type, id)\n customers(type, amount, salary, code)\nTask: Select code from tasks where level exists in customers for the same status.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "customers", "outer_alias": "tsk", "inner_alias": "cust", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02918", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(salary, name, status, type)\n categories(amount, value, date, id)\nTask: Find salary from projects where type appears in categories entries with matching code.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE type IN (\n SELECT type FROM categories AS catg\n WHERE catg.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "categories", "outer_alias": "prj", "inner_alias": "catg", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02919", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(status, date, level, type)\n branches(type, level, code, value)\nTask: Find amount from categories where a matching record exists in branches with the same id.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "amount", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02920", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(id, date, status, code)\n regions(value, level, name, amount)\nTask: Retrieve name from customers with salary above the COUNT(value) of regions rows sharing the same code.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE salary > (\n SELECT COUNT(value) FROM regions AS rgn\n WHERE rgn.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02921", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(type, id, name, level)\n employees(salary, status, name, value)\nTask: Find value from items where a matching record exists in employees with the same status.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "value", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02922", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(amount, value, status, level)\n projects(amount, type, date, name)\nTask: Retrieve amount from invoices with salary above the AVG(amount) of projects rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE salary > (\n SELECT AVG(amount) FROM projects AS prj\n WHERE prj.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "projects", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02923", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(salary, level, amount, status)\n orders(value, id, level, status)\nTask: Find amount from departments where value exceeds the total salary from orders for the same status.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE value > (\n SELECT SUM(salary) FROM orders AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "orders", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02924", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(name, date, value, salary)\n customers(value, id, salary, amount)\nTask: Retrieve amount from products that have at least one corresponding entry in customers sharing the same id.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "customers", "outer_alias": "prod", "inner_alias": "cust", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02925", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(name, value, date, level)\n requests(level, date, id, status)\nTask: Find value from regions where code appears in requests entries with matching type.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "requests", "outer_alias": "rgn", "inner_alias": "ordr", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02926", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(name, amount, type, status)\n invoices(status, code, level, amount)\nTask: Retrieve id from requests with value above the AVG(amount) of invoices rows sharing the same id.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE value > (\n SELECT AVG(amount) FROM invoices AS inv\n WHERE inv.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "invoices", "outer_alias": "ordr", "inner_alias": "inv", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02927", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(amount, code, value, type)\n employees(type, date, code, id)\nTask: Find value from accounts where a matching record exists in employees with the same code.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "employees", "outer_alias": "acct", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02928", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(salary, status, amount, id)\n requests(date, code, value, amount)\nTask: Find name from invoices where amount exceeds the minimum value from requests for the same level.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE amount > (\n SELECT MIN(value) FROM requests AS ordr\n WHERE ordr.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "requests", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02929", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(amount, salary, code, level)\n regions(type, status, amount, level)\nTask: Retrieve amount from sales that have at least one corresponding entry in regions sharing the same id.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "regions", "outer_alias": "sale", "inner_alias": "rgn", "proj_col": "amount", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02930", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(status, level, id, type)\n sales(type, code, amount, level)\nTask: Retrieve value from orders with value above the AVG(amount) of sales rows sharing the same code.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE value > (\n SELECT AVG(amount) FROM sales AS sale\n WHERE sale.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "sales", "outer_alias": "ord", "inner_alias": "sale", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02931", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(salary, value, level, date)\n requests(salary, type, id, level)\nTask: Find id from regions where a matching record exists in requests with the same level.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "requests", "outer_alias": "rgn", "inner_alias": "ordr", "proj_col": "id", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02932", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(value, date, salary, name)\n sales(level, value, date, name)\nTask: Find name from shipments where salary exceeds the minimum amount from sales for the same level.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE salary > (\n SELECT MIN(amount) FROM sales AS sale\n WHERE sale.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "sales", "outer_alias": "shp", "inner_alias": "sale", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02933", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(level, date, value, type)\n invoices(code, value, type, level)\nTask: Find salary from tasks where a matching record exists in invoices with the same type.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "invoices", "outer_alias": "tsk", "inner_alias": "inv", "proj_col": "salary", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02934", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(amount, code, id, level)\n shipments(status, code, name, amount)\nTask: Find value from departments where a matching record exists in shipments with the same code.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "shipments", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02935", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(level, id, salary, status)\n transactions(value, code, salary, id)\nTask: Find name from accounts where a matching record exists in transactions with the same status.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "transactions", "outer_alias": "acct", "inner_alias": "txn", "proj_col": "name", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02936", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(level, status, type, salary)\n orders(name, level, status, salary)\nTask: Find name from projects where salary exceeds the maximum amount from orders for the same type.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE salary > (\n SELECT MAX(amount) FROM orders AS ord\n WHERE ord.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02937", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(id, salary, type, date)\n tasks(status, salary, value, level)\nTask: Find code from branches where value exceeds the minimum salary from tasks for the same code.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE value > (\n SELECT MIN(salary) FROM tasks AS tsk\n WHERE tsk.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02938", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(name, level, id, amount)\n employees(amount, status, type, salary)\nTask: Find amount from branches where amount exceeds the total value from employees for the same code.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE amount > (\n SELECT SUM(value) FROM employees AS emp\n WHERE emp.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "employees", "outer_alias": "brc", "inner_alias": "emp", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02939", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(amount, type, value, status)\n shipments(salary, id, date, code)\nTask: Find name from invoices where a matching record exists in shipments with the same type.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02940", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(code, date, amount, salary)\n products(status, amount, type, level)\nTask: Find id from invoices where level appears in products entries with matching status.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "products", "outer_alias": "inv", "inner_alias": "prod", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02941", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(name, date, amount, id)\n schedules(id, value, date, level)\nTask: Find code from staff where a matching record exists in schedules with the same status.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "schedules", "outer_alias": "empl", "inner_alias": "schd", "proj_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02942", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(type, date, id, amount)\n categories(date, value, status, salary)\nTask: Find code from branches where a matching record exists in categories with the same type.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "categories", "outer_alias": "brc", "inner_alias": "catg", "proj_col": "code", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02943", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(amount, name, status, salary)\n branches(date, level, type, code)\nTask: Find value from regions where code appears in branches entries with matching type.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "branches", "outer_alias": "rgn", "inner_alias": "brc", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02944", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(type, status, level, code)\n orders(type, code, date, value)\nTask: Find name from items where value exceeds the average value from orders for the same id.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE value > (\n SELECT AVG(value) FROM orders AS ord\n WHERE ord.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "orders", "outer_alias": "lne", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_02945", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(status, id, date, level)\n accounts(value, level, code, date)\nTask: Select amount from staff where level exists in accounts for the same level.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE level IN (\n SELECT level FROM accounts AS acct\n WHERE acct.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "accounts", "outer_alias": "empl", "inner_alias": "acct", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02946", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(amount, date, code, status)\n accounts(code, name, salary, amount)\nTask: Retrieve id from requests that have at least one corresponding entry in accounts sharing the same level.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "accounts", "outer_alias": "ordr", "inner_alias": "acct", "proj_col": "id", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02947", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(level, type, id, name)\n transactions(value, type, amount, status)\nTask: Select code from orders where level exists in transactions for the same id.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02948", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(status, level, date, value)\n shipments(date, type, value, amount)\nTask: Retrieve value from departments whose type is found in shipments rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE type IN (\n SELECT type FROM shipments AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "shipments", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02949", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(level, id, status, type)\n orders(status, value, date, level)\nTask: Find amount from products where status appears in orders entries with matching code.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE status IN (\n SELECT status FROM orders AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "orders", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02950", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(amount, name, level, id)\n products(date, salary, level, status)\nTask: Find amount from departments where salary exceeds the count of value from products for the same type.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE salary > (\n SELECT COUNT(value) FROM products AS prod\n WHERE prod.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "products", "outer_alias": "dept", "inner_alias": "prod", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02951", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(salary, name, status, type)\n staff(status, value, type, name)\nTask: Find id from employees where value exceeds the average amount from staff for the same level.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE value > (\n SELECT AVG(amount) FROM staff AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "staff", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02952", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(level, amount, date, code)\n requests(type, name, salary, id)\nTask: Select code from sales where status exists in requests for the same code.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "requests", "outer_alias": "sale", "inner_alias": "ordr", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02953", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(salary, level, date, type)\n regions(status, date, type, salary)\nTask: Select id from branches where code exists in regions for the same id.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "regions", "outer_alias": "brc", "inner_alias": "rgn", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02954", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(status, salary, id, code)\n orders(date, id, type, amount)\nTask: Find name from schedules where value exceeds the maximum salary from orders for the same level.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE value > (\n SELECT MAX(salary) FROM orders AS ord\n WHERE ord.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "orders", "outer_alias": "schd", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02955", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(id, date, salary, amount)\n shipments(id, status, amount, name)\nTask: Find id from customers where status appears in shipments entries with matching status.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE status IN (\n SELECT status FROM shipments AS shp\n WHERE shp.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "shipments", "outer_alias": "cust", "inner_alias": "shp", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02956", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(value, amount, status, salary)\n transactions(date, salary, status, code)\nTask: Retrieve amount from requests whose type is found in transactions rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE type IN (\n SELECT type FROM transactions AS txn\n WHERE txn.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02957", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(value, status, name, id)\n tasks(value, amount, id, level)\nTask: Find amount from accounts where a matching record exists in tasks with the same status.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "tasks", "outer_alias": "acct", "inner_alias": "tsk", "proj_col": "amount", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02958", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(level, status, salary, amount)\n employees(amount, type, value, status)\nTask: Retrieve id from projects with salary above the MIN(amount) of employees rows sharing the same type.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE salary > (\n SELECT MIN(amount) FROM employees AS emp\n WHERE emp.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "employees", "outer_alias": "prj", "inner_alias": "emp", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_02959", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(amount, code, id, status)\n sales(amount, name, level, date)\nTask: Retrieve code from products with value above the COUNT(value) of sales rows sharing the same id.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE value > (\n SELECT COUNT(value) FROM sales AS sale\n WHERE sale.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "sales", "outer_alias": "prod", "inner_alias": "sale", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02960", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(type, value, name, salary)\n managers(level, salary, value, name)\nTask: Find id from employees where salary exceeds the count of value from managers for the same type.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE salary > (\n SELECT COUNT(value) FROM managers AS mgr\n WHERE mgr.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02961", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(status, date, name, id)\n requests(level, status, name, code)\nTask: Retrieve amount from orders whose level is found in requests rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE level IN (\n SELECT level FROM requests AS ordr\n WHERE ordr.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "requests", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02962", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(name, status, value, amount)\n departments(salary, value, code, type)\nTask: Retrieve amount from accounts that have at least one corresponding entry in departments sharing the same type.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "departments", "outer_alias": "acct", "inner_alias": "dept", "proj_col": "amount", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02963", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(type, id, status, value)\n shipments(level, type, salary, status)\nTask: Find salary from branches where status appears in shipments entries with matching type.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE status IN (\n SELECT status FROM shipments AS shp\n WHERE shp.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "shipments", "outer_alias": "brc", "inner_alias": "shp", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_02964", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(name, level, id, value)\n projects(id, date, name, level)\nTask: Select salary from schedules where id exists in projects for the same code.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "projects", "outer_alias": "schd", "inner_alias": "prj", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02965", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(status, level, name, code)\n staff(salary, amount, code, level)\nTask: Find name from accounts where salary exceeds the total salary from staff for the same code.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE salary > (\n SELECT SUM(salary) FROM staff AS empl\n WHERE empl.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02966", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(date, code, name, amount)\n projects(amount, value, level, type)\nTask: Retrieve code from products whose status is found in projects rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE status IN (\n SELECT status FROM projects AS prj\n WHERE prj.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "projects", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02967", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(name, type, amount, value)\n customers(id, level, amount, name)\nTask: Find name from sales where type appears in customers entries with matching level.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "customers", "outer_alias": "sale", "inner_alias": "cust", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02968", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(status, value, name, code)\n regions(date, status, type, name)\nTask: Retrieve value from invoices with value above the SUM(salary) of regions rows sharing the same id.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE value > (\n SELECT SUM(salary) FROM regions AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "regions", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02969", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(type, amount, level, code)\n products(code, salary, amount, value)\nTask: Retrieve code from categories whose level is found in products rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "products", "outer_alias": "catg", "inner_alias": "prod", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02970", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(code, name, type, salary)\n sales(salary, name, id, date)\nTask: Retrieve code from shipments with value above the COUNT(amount) of sales rows sharing the same status.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE value > (\n SELECT COUNT(amount) FROM sales AS sale\n WHERE sale.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "sales", "outer_alias": "shp", "inner_alias": "sale", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02971", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(name, salary, type, date)\n schedules(code, amount, date, value)\nTask: Retrieve id from managers whose type is found in schedules rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "schedules", "outer_alias": "mgr", "inner_alias": "schd", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02972", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(type, level, status, date)\n branches(amount, level, salary, id)\nTask: Find id from regions where value exceeds the maximum amount from branches for the same level.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE value > (\n SELECT MAX(amount) FROM branches AS brc\n WHERE brc.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "branches", "outer_alias": "rgn", "inner_alias": "brc", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02973", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(code, id, status, name)\n products(amount, status, id, name)\nTask: Retrieve code from regions whose status is found in products rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_02974", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(status, type, date, name)\n transactions(amount, code, status, name)\nTask: Find id from orders where a matching record exists in transactions with the same id.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02975", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(code, type, name, date)\n employees(status, level, type, amount)\nTask: Retrieve amount from departments whose status is found in employees rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "employees", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02976", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(level, amount, id, date)\n invoices(name, level, value, amount)\nTask: Find id from tasks where amount exceeds the total salary from invoices for the same code.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE amount > (\n SELECT SUM(salary) FROM invoices AS inv\n WHERE inv.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "invoices", "outer_alias": "tsk", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02977", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(type, value, level, id)\n items(amount, type, value, salary)\nTask: Find salary from managers where amount exceeds the average salary from items for the same id.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE amount > (\n SELECT AVG(salary) FROM items AS lne\n WHERE lne.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "items", "outer_alias": "mgr", "inner_alias": "lne", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02978", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(amount, level, salary, type)\n projects(code, id, date, amount)\nTask: Retrieve code from customers that have at least one corresponding entry in projects sharing the same id.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "projects", "outer_alias": "cust", "inner_alias": "prj", "proj_col": "code", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02979", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(id, code, date, type)\n products(id, status, type, name)\nTask: Find id from schedules where a matching record exists in products with the same status.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "products", "outer_alias": "schd", "inner_alias": "prod", "proj_col": "id", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_02980", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(salary, status, date, amount)\n categories(type, status, salary, code)\nTask: Find salary from customers where a matching record exists in categories with the same level.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "categories", "outer_alias": "cust", "inner_alias": "catg", "proj_col": "salary", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02981", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(date, value, amount, name)\n staff(status, name, salary, code)\nTask: Find name from managers where code appears in staff entries with matching code.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM staff AS empl\n WHERE empl.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "staff", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02982", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(amount, salary, code, id)\n branches(amount, code, name, type)\nTask: Retrieve name from employees with value above the MIN(value) of branches rows sharing the same type.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE value > (\n SELECT MIN(value) FROM branches AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "branches", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02983", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(id, amount, value, status)\n categories(level, code, amount, name)\nTask: Retrieve code from transactions whose code is found in categories rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM categories AS catg\n WHERE catg.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "categories", "outer_alias": "txn", "inner_alias": "catg", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02984", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(type, status, date, id)\n items(amount, id, name, status)\nTask: Retrieve id from accounts with amount above the MIN(amount) of items rows sharing the same id.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE amount > (\n SELECT MIN(amount) FROM items AS lne\n WHERE lne.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "items", "outer_alias": "acct", "inner_alias": "lne", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02985", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(level, salary, id, date)\n transactions(code, amount, date, name)\nTask: Find id from managers where level appears in transactions entries with matching id.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "transactions", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02986", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(name, level, date, id)\n schedules(date, status, amount, value)\nTask: Find id from shipments where a matching record exists in schedules with the same type.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "schedules", "outer_alias": "shp", "inner_alias": "schd", "proj_col": "id", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02987", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(status, id, type, amount)\n products(amount, code, name, date)\nTask: Retrieve name from requests whose level is found in products rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "products", "outer_alias": "ordr", "inner_alias": "prod", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_02988", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(date, name, type, id)\n managers(date, amount, salary, value)\nTask: Retrieve code from departments with value above the SUM(salary) of managers rows sharing the same status.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE value > (\n SELECT SUM(salary) FROM managers AS mgr\n WHERE mgr.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "managers", "outer_alias": "dept", "inner_alias": "mgr", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02989", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(code, salary, level, name)\n categories(id, amount, value, code)\nTask: Select code from shipments where level exists in categories for the same id.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "categories", "outer_alias": "shp", "inner_alias": "catg", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02990", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(status, code, amount, value)\n sales(id, name, type, level)\nTask: Retrieve salary from staff whose type is found in sales rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE type IN (\n SELECT type FROM sales AS sale\n WHERE sale.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "sales", "outer_alias": "empl", "inner_alias": "sale", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_02991", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(date, amount, level, code)\n products(salary, amount, date, status)\nTask: Find code from shipments where id appears in products entries with matching level.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02992", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(salary, value, amount, level)\n branches(amount, status, salary, type)\nTask: Select amount from shipments where level exists in branches for the same id.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "branches", "outer_alias": "shp", "inner_alias": "brc", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02993", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(date, code, amount, status)\n departments(status, id, amount, level)\nTask: Select value from shipments where code exists in departments for the same level.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "departments", "outer_alias": "shp", "inner_alias": "dept", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_02994", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(type, level, name, salary)\n departments(amount, date, value, id)\nTask: Find amount from tasks where a matching record exists in departments with the same code.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "departments", "outer_alias": "tsk", "inner_alias": "dept", "proj_col": "amount", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_02995", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(amount, level, date, status)\n transactions(status, id, code, salary)\nTask: Select salary from orders where type exists in transactions for the same status.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE type IN (\n SELECT type FROM transactions AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02996", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(status, amount, value, code)\n sales(status, amount, type, level)\nTask: Find name from orders where a matching record exists in sales with the same code.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "sales", "outer_alias": "ord", "inner_alias": "sale", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02997", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(date, value, type, level)\n invoices(name, type, date, code)\nTask: Retrieve amount from orders that have at least one corresponding entry in invoices sharing the same code.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "invoices", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02998", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(id, code, level, type)\n tasks(salary, code, name, value)\nTask: Select salary from transactions where status exists in tasks for the same level.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE status IN (\n SELECT status FROM tasks AS tsk\n WHERE tsk.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "tasks", "outer_alias": "txn", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_02999", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(salary, date, amount, value)\n projects(amount, type, name, status)\nTask: Retrieve id from staff that have at least one corresponding entry in projects sharing the same status.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "projects", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03000", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(date, amount, status, value)\n employees(code, salary, name, date)\nTask: Find amount from items where a matching record exists in employees with the same code.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "amount", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03001", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(amount, value, date, type)\n managers(value, id, type, date)\nTask: Select amount from invoices where id exists in managers for the same code.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "managers", "outer_alias": "inv", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03002", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(code, date, id, value)\n orders(salary, type, date, id)\nTask: Retrieve amount from employees that have at least one corresponding entry in orders sharing the same level.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "orders", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03003", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(name, type, id, code)\n accounts(code, id, date, name)\nTask: Find amount from products where amount exceeds the minimum value from accounts for the same code.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE amount > (\n SELECT MIN(value) FROM accounts AS acct\n WHERE acct.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "accounts", "outer_alias": "prod", "inner_alias": "acct", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03004", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(type, value, status, code)\n branches(date, salary, level, amount)\nTask: Retrieve value from products whose level is found in branches rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "branches", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03005", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(date, name, type, level)\n items(name, amount, level, id)\nTask: Retrieve amount from requests that have at least one corresponding entry in items sharing the same id.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "amount", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03006", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(status, code, name, salary)\n departments(salary, code, level, date)\nTask: Retrieve salary from branches that have at least one corresponding entry in departments sharing the same status.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "departments", "outer_alias": "brc", "inner_alias": "dept", "proj_col": "salary", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03007", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(name, code, status, amount)\n managers(date, id, code, level)\nTask: Retrieve value from departments with value above the COUNT(value) of managers rows sharing the same id.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE value > (\n SELECT COUNT(value) FROM managers AS mgr\n WHERE mgr.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "managers", "outer_alias": "dept", "inner_alias": "mgr", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03008", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(code, status, level, type)\n staff(code, value, type, name)\nTask: Retrieve salary from products whose id is found in staff rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE id IN (\n SELECT id FROM staff AS empl\n WHERE empl.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03009", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(salary, id, date, amount)\n requests(date, code, name, salary)\nTask: Retrieve code from shipments whose level is found in requests rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM requests AS ordr\n WHERE ordr.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "requests", "outer_alias": "shp", "inner_alias": "ordr", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03010", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(code, value, level, date)\n projects(salary, date, amount, type)\nTask: Find value from invoices where type appears in projects entries with matching status.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM projects AS prj\n WHERE prj.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "projects", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03011", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(amount, name, date, salary)\n shipments(status, amount, salary, level)\nTask: Retrieve amount from items that have at least one corresponding entry in shipments sharing the same code.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "shipments", "outer_alias": "lne", "inner_alias": "shp", "proj_col": "amount", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03012", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(date, level, status, value)\n transactions(status, value, type, salary)\nTask: Retrieve value from products that have at least one corresponding entry in transactions sharing the same type.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "value", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03013", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(amount, value, date, salary)\n employees(name, code, date, id)\nTask: Retrieve value from branches with salary above the COUNT(value) of employees rows sharing the same type.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE salary > (\n SELECT COUNT(value) FROM employees AS emp\n WHERE emp.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "employees", "outer_alias": "brc", "inner_alias": "emp", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03014", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(code, status, date, level)\n items(name, date, type, salary)\nTask: Select salary from tasks where type exists in items for the same code.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "items", "outer_alias": "tsk", "inner_alias": "lne", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03015", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(type, salary, name, date)\n staff(id, amount, salary, level)\nTask: Retrieve id from invoices with amount above the AVG(amount) of staff rows sharing the same id.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE amount > (\n SELECT AVG(amount) FROM staff AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "staff", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03016", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(type, amount, status, id)\n requests(value, code, type, status)\nTask: Find id from tasks where type appears in requests entries with matching code.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03017", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(date, type, level, amount)\n employees(amount, code, date, name)\nTask: Retrieve amount from schedules with salary above the COUNT(amount) of employees rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE salary > (\n SELECT COUNT(amount) FROM employees AS emp\n WHERE emp.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03018", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(id, salary, name, status)\n departments(code, name, id, amount)\nTask: Retrieve value from employees with salary above the SUM(salary) of departments rows sharing the same id.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE salary > (\n SELECT SUM(salary) FROM departments AS dept\n WHERE dept.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "departments", "outer_alias": "emp", "inner_alias": "dept", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03019", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(amount, status, date, value)\n sales(date, status, level, value)\nTask: Find code from transactions where a matching record exists in sales with the same code.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "sales", "outer_alias": "txn", "inner_alias": "sale", "proj_col": "code", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03020", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(id, value, amount, salary)\n shipments(salary, name, code, amount)\nTask: Retrieve value from requests with value above the MIN(salary) of shipments rows sharing the same code.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE value > (\n SELECT MIN(salary) FROM shipments AS shp\n WHERE shp.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "shipments", "outer_alias": "ordr", "inner_alias": "shp", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03021", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(id, name, value, code)\n projects(status, value, name, code)\nTask: Retrieve code from accounts with salary above the AVG(amount) of projects rows sharing the same status.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE salary > (\n SELECT AVG(amount) FROM projects AS prj\n WHERE prj.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "projects", "outer_alias": "acct", "inner_alias": "prj", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03022", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(type, status, amount, name)\n invoices(code, salary, date, name)\nTask: Retrieve salary from regions whose id is found in invoices rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE id IN (\n SELECT id FROM invoices AS inv\n WHERE inv.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "invoices", "outer_alias": "rgn", "inner_alias": "inv", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03023", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(level, id, date, amount)\n products(type, name, level, code)\nTask: Find code from employees where a matching record exists in products with the same type.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03024", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(value, status, amount, date)\n transactions(name, id, value, date)\nTask: Retrieve amount from orders that have at least one corresponding entry in transactions sharing the same id.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03025", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(date, level, salary, type)\n employees(code, status, value, amount)\nTask: Retrieve salary from regions that have at least one corresponding entry in employees sharing the same level.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "salary", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03026", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(amount, code, status, name)\n accounts(level, status, name, value)\nTask: Find id from projects where a matching record exists in accounts with the same type.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "accounts", "outer_alias": "prj", "inner_alias": "acct", "proj_col": "id", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03027", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(date, id, type, salary)\n sales(id, name, code, salary)\nTask: Retrieve name from staff with value above the COUNT(value) of sales rows sharing the same code.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE value > (\n SELECT COUNT(value) FROM sales AS sale\n WHERE sale.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "sales", "outer_alias": "empl", "inner_alias": "sale", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03028", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(value, id, level, status)\n departments(date, id, amount, salary)\nTask: Find id from employees where code appears in departments entries with matching status.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "departments", "outer_alias": "emp", "inner_alias": "dept", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03029", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(id, salary, amount, type)\n schedules(date, amount, id, level)\nTask: Find code from transactions where id appears in schedules entries with matching type.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "schedules", "outer_alias": "txn", "inner_alias": "schd", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03030", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(level, id, salary, type)\n managers(code, name, amount, status)\nTask: Find code from schedules where status appears in managers entries with matching id.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03031", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(amount, value, code, date)\n projects(status, date, level, salary)\nTask: Find amount from sales where salary exceeds the average amount from projects for the same status.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE salary > (\n SELECT AVG(amount) FROM projects AS prj\n WHERE prj.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "projects", "outer_alias": "sale", "inner_alias": "prj", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03032", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(id, type, status, name)\n sales(salary, date, amount, name)\nTask: Retrieve id from requests that have at least one corresponding entry in sales sharing the same type.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "sales", "outer_alias": "ordr", "inner_alias": "sale", "proj_col": "id", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03033", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(type, id, date, value)\n requests(date, level, status, name)\nTask: Find name from invoices where a matching record exists in requests with the same id.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "requests", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "name", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03034", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(value, salary, type, status)\n regions(salary, value, date, amount)\nTask: Retrieve salary from items with salary above the AVG(amount) of regions rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE salary > (\n SELECT AVG(amount) FROM regions AS rgn\n WHERE rgn.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "regions", "outer_alias": "lne", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03035", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(id, name, amount, level)\n orders(type, name, code, status)\nTask: Find salary from transactions where value exceeds the minimum value from orders for the same code.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE value > (\n SELECT MIN(value) FROM orders AS ord\n WHERE ord.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "orders", "outer_alias": "txn", "inner_alias": "ord", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03036", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(id, amount, type, date)\n schedules(date, value, id, amount)\nTask: Find value from customers where amount exceeds the count of value from schedules for the same level.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE amount > (\n SELECT COUNT(value) FROM schedules AS schd\n WHERE schd.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "schedules", "outer_alias": "cust", "inner_alias": "schd", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03037", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(id, amount, value, date)\n shipments(status, amount, code, value)\nTask: Find salary from invoices where salary exceeds the average salary from shipments for the same type.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE salary > (\n SELECT AVG(salary) FROM shipments AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03038", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(value, amount, code, name)\n requests(date, id, salary, name)\nTask: Select code from departments where id exists in requests for the same code.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE id IN (\n SELECT id FROM requests AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "requests", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03039", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(code, id, date, level)\n sales(level, date, value, name)\nTask: Retrieve code from projects that have at least one corresponding entry in sales sharing the same code.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "sales", "outer_alias": "prj", "inner_alias": "sale", "proj_col": "code", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03040", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(id, amount, status, code)\n projects(date, code, amount, level)\nTask: Find id from departments where amount exceeds the count of value from projects for the same id.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE amount > (\n SELECT COUNT(value) FROM projects AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "projects", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03041", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(date, name, level, value)\n branches(level, code, salary, amount)\nTask: Retrieve id from products that have at least one corresponding entry in branches sharing the same id.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "branches", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03042", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(type, code, salary, name)\n projects(code, salary, id, amount)\nTask: Find salary from customers where a matching record exists in projects with the same code.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "projects", "outer_alias": "cust", "inner_alias": "prj", "proj_col": "salary", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03043", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(name, code, id, type)\n invoices(name, amount, status, id)\nTask: Retrieve value from regions whose type is found in invoices rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "invoices", "outer_alias": "rgn", "inner_alias": "inv", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03044", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(type, level, code, id)\n branches(status, type, id, level)\nTask: Find id from requests where type appears in branches entries with matching type.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE type IN (\n SELECT type FROM branches AS brc\n WHERE brc.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "branches", "outer_alias": "ordr", "inner_alias": "brc", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03045", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(date, amount, level, code)\n branches(id, amount, value, salary)\nTask: Find salary from products where code appears in branches entries with matching status.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "branches", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03046", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(level, name, value, type)\n products(salary, code, date, level)\nTask: Retrieve name from managers that have at least one corresponding entry in products sharing the same status.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03047", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(id, code, status, value)\n orders(date, level, value, name)\nTask: Retrieve name from tasks that have at least one corresponding entry in orders sharing the same level.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "orders", "outer_alias": "tsk", "inner_alias": "ord", "proj_col": "name", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03048", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(type, value, status, salary)\n tasks(level, type, id, salary)\nTask: Retrieve value from customers whose code is found in tasks rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE code IN (\n SELECT code FROM tasks AS tsk\n WHERE tsk.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "tasks", "outer_alias": "cust", "inner_alias": "tsk", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03049", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(level, value, id, code)\n regions(value, level, date, status)\nTask: Select name from orders where type exists in regions for the same type.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE type IN (\n SELECT type FROM regions AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "regions", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03050", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(level, salary, status, type)\n customers(amount, level, id, code)\nTask: Find id from sales where salary exceeds the total value from customers for the same id.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE salary > (\n SELECT SUM(value) FROM customers AS cust\n WHERE cust.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "customers", "outer_alias": "sale", "inner_alias": "cust", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03051", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(name, value, type, amount)\n regions(date, value, code, salary)\nTask: Select value from managers where id exists in regions for the same level.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "regions", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03052", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(salary, code, name, amount)\n staff(value, type, salary, name)\nTask: Find value from invoices where value exceeds the minimum value from staff for the same status.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE value > (\n SELECT MIN(value) FROM staff AS empl\n WHERE empl.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "staff", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03053", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(type, code, name, status)\n staff(amount, level, date, code)\nTask: Retrieve code from items with salary above the MIN(amount) of staff rows sharing the same id.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE salary > (\n SELECT MIN(amount) FROM staff AS empl\n WHERE empl.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "staff", "outer_alias": "lne", "inner_alias": "empl", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03054", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(code, amount, type, date)\n schedules(code, id, name, amount)\nTask: Select amount from requests where status exists in schedules for the same type.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM schedules AS schd\n WHERE schd.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "schedules", "outer_alias": "ordr", "inner_alias": "schd", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03055", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(value, id, name, salary)\n shipments(level, code, type, salary)\nTask: Retrieve value from tasks with salary above the MIN(value) of shipments rows sharing the same type.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE salary > (\n SELECT MIN(value) FROM shipments AS shp\n WHERE shp.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "shipments", "outer_alias": "tsk", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03056", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(level, name, value, type)\n customers(amount, value, type, name)\nTask: Find code from sales where a matching record exists in customers with the same type.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "customers", "outer_alias": "sale", "inner_alias": "cust", "proj_col": "code", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03057", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(type, status, date, level)\n products(id, amount, type, value)\nTask: Retrieve salary from departments with salary above the MAX(amount) of products rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE salary > (\n SELECT MAX(amount) FROM products AS prod\n WHERE prod.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "products", "outer_alias": "dept", "inner_alias": "prod", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03058", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(status, code, salary, id)\n employees(salary, name, id, status)\nTask: Retrieve code from departments whose type is found in employees rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "employees", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03059", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(date, status, type, name)\n sales(code, status, name, id)\nTask: Retrieve value from staff whose code is found in sales rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE code IN (\n SELECT code FROM sales AS sale\n WHERE sale.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "sales", "outer_alias": "empl", "inner_alias": "sale", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03060", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(name, value, status, level)\n orders(date, amount, id, type)\nTask: Retrieve amount from sales whose level is found in orders rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "orders", "outer_alias": "sale", "inner_alias": "ord", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03061", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(date, status, name, amount)\n items(level, date, salary, id)\nTask: Select code from categories where status exists in items for the same id.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03062", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(level, code, amount, type)\n transactions(level, amount, name, code)\nTask: Retrieve id from employees whose id is found in transactions rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE id IN (\n SELECT id FROM transactions AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "transactions", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03063", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(salary, status, level, value)\n transactions(level, name, value, type)\nTask: Retrieve code from tasks with amount above the MAX(amount) of transactions rows sharing the same type.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE amount > (\n SELECT MAX(amount) FROM transactions AS txn\n WHERE txn.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "transactions", "outer_alias": "tsk", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03064", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(id, value, code, amount)\n schedules(name, salary, code, amount)\nTask: Find value from departments where code appears in schedules entries with matching level.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE code IN (\n SELECT code FROM schedules AS schd\n WHERE schd.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "schedules", "outer_alias": "dept", "inner_alias": "schd", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03065", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(name, level, value, date)\n items(value, status, salary, amount)\nTask: Retrieve code from shipments whose level is found in items rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM items AS lne\n WHERE lne.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "items", "outer_alias": "shp", "inner_alias": "lne", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03066", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(amount, name, date, status)\n employees(name, id, status, date)\nTask: Select id from orders where status exists in employees for the same level.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03067", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(amount, value, status, date)\n staff(name, id, type, status)\nTask: Retrieve code from regions with salary above the MIN(salary) of staff rows sharing the same level.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE salary > (\n SELECT MIN(salary) FROM staff AS empl\n WHERE empl.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "staff", "outer_alias": "rgn", "inner_alias": "empl", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03068", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(level, type, date, id)\n departments(name, id, amount, code)\nTask: Find id from shipments where a matching record exists in departments with the same code.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "departments", "outer_alias": "shp", "inner_alias": "dept", "proj_col": "id", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03069", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(name, level, date, status)\n regions(name, code, amount, date)\nTask: Find id from requests where a matching record exists in regions with the same level.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "regions", "outer_alias": "ordr", "inner_alias": "rgn", "proj_col": "id", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03070", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(amount, status, name, id)\n regions(name, value, code, amount)\nTask: Find code from transactions where level appears in regions entries with matching level.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03071", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(level, id, salary, amount)\n customers(name, value, amount, status)\nTask: Select salary from projects where status exists in customers for the same type.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE status IN (\n SELECT status FROM customers AS cust\n WHERE cust.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "customers", "outer_alias": "prj", "inner_alias": "cust", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03072", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(code, salary, type, status)\n categories(id, name, level, value)\nTask: Find value from schedules where a matching record exists in categories with the same id.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "categories", "outer_alias": "schd", "inner_alias": "catg", "proj_col": "value", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03073", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(level, type, id, code)\n regions(amount, salary, date, type)\nTask: Find name from products where a matching record exists in regions with the same level.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03074", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(code, name, amount, level)\n tasks(type, amount, value, salary)\nTask: Find code from employees where salary exceeds the count of salary from tasks for the same code.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE salary > (\n SELECT COUNT(salary) FROM tasks AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "tasks", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03075", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(amount, date, type, name)\n orders(status, date, salary, name)\nTask: Retrieve id from managers whose status is found in orders rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE status IN (\n SELECT status FROM orders AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "orders", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03076", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(status, value, salary, name)\n schedules(value, code, level, status)\nTask: Select id from requests where type exists in schedules for the same status.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "schedules", "outer_alias": "ordr", "inner_alias": "schd", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03077", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(code, name, value, date)\n departments(level, amount, name, code)\nTask: Find name from schedules where a matching record exists in departments with the same status.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "departments", "outer_alias": "schd", "inner_alias": "dept", "proj_col": "name", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03078", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(date, value, type, code)\n regions(level, salary, name, id)\nTask: Find amount from accounts where amount exceeds the minimum amount from regions for the same id.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE amount > (\n SELECT MIN(amount) FROM regions AS rgn\n WHERE rgn.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "regions", "outer_alias": "acct", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03079", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(amount, salary, code, status)\n branches(value, amount, code, date)\nTask: Retrieve code from sales that have at least one corresponding entry in branches sharing the same id.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "branches", "outer_alias": "sale", "inner_alias": "brc", "proj_col": "code", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03080", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(value, date, salary, type)\n items(salary, level, value, type)\nTask: Find id from tasks where value exceeds the count of salary from items for the same code.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE value > (\n SELECT COUNT(salary) FROM items AS lne\n WHERE lne.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "items", "outer_alias": "tsk", "inner_alias": "lne", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03081", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(type, code, value, status)\n branches(value, code, level, salary)\nTask: Retrieve salary from requests that have at least one corresponding entry in branches sharing the same status.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "branches", "outer_alias": "ordr", "inner_alias": "brc", "proj_col": "salary", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03082", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(date, id, name, status)\n employees(status, amount, value, date)\nTask: Select value from branches where code exists in employees for the same type.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "employees", "outer_alias": "brc", "inner_alias": "emp", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03083", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(type, id, name, level)\n staff(date, type, code, name)\nTask: Find value from products where a matching record exists in staff with the same type.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "value", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03084", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(name, amount, id, type)\n invoices(type, date, amount, status)\nTask: Select id from projects where id exists in invoices for the same status.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE id IN (\n SELECT id FROM invoices AS inv\n WHERE inv.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "invoices", "outer_alias": "prj", "inner_alias": "inv", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03085", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(id, salary, name, level)\n requests(salary, date, value, type)\nTask: Retrieve salary from schedules with amount above the COUNT(value) of requests rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE amount > (\n SELECT COUNT(value) FROM requests AS ordr\n WHERE ordr.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "requests", "outer_alias": "schd", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03086", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(level, status, salary, code)\n categories(value, type, salary, amount)\nTask: Retrieve id from products whose level is found in categories rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "categories", "outer_alias": "prod", "inner_alias": "catg", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03087", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(id, type, name, amount)\n branches(status, name, type, value)\nTask: Retrieve name from items whose status is found in branches rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03088", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(name, salary, status, value)\n requests(code, date, amount, name)\nTask: Find code from customers where a matching record exists in requests with the same type.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "requests", "outer_alias": "cust", "inner_alias": "ordr", "proj_col": "code", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03089", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(salary, type, value, code)\n staff(type, id, salary, level)\nTask: Find value from invoices where salary exceeds the maximum value from staff for the same id.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE salary > (\n SELECT MAX(value) FROM staff AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "staff", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03090", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(salary, amount, name, level)\n orders(level, date, status, type)\nTask: Retrieve id from managers that have at least one corresponding entry in orders sharing the same id.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "orders", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03091", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(type, name, id, level)\n tasks(amount, date, type, value)\nTask: Find code from invoices where value exceeds the count of amount from tasks for the same code.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE value > (\n SELECT COUNT(amount) FROM tasks AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03092", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(amount, value, salary, code)\n managers(id, level, date, value)\nTask: Find amount from schedules where salary exceeds the total salary from managers for the same status.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE salary > (\n SELECT SUM(salary) FROM managers AS mgr\n WHERE mgr.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03093", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(amount, date, value, level)\n transactions(value, code, name, id)\nTask: Retrieve value from schedules that have at least one corresponding entry in transactions sharing the same type.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "transactions", "outer_alias": "schd", "inner_alias": "txn", "proj_col": "value", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03094", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(type, date, level, status)\n managers(salary, status, value, date)\nTask: Select salary from customers where type exists in managers for the same level.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "managers", "outer_alias": "cust", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03095", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(type, salary, id, date)\n regions(id, salary, level, value)\nTask: Find code from transactions where a matching record exists in regions with the same status.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "code", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03096", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(type, salary, level, amount)\n orders(date, status, type, value)\nTask: Find amount from accounts where amount exceeds the average amount from orders for the same code.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE amount > (\n SELECT AVG(amount) FROM orders AS ord\n WHERE ord.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "orders", "outer_alias": "acct", "inner_alias": "ord", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03097", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(date, id, salary, level)\n products(level, code, name, status)\nTask: Retrieve salary from projects with amount above the MAX(value) of products rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE amount > (\n SELECT MAX(value) FROM products AS prod\n WHERE prod.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "products", "outer_alias": "prj", "inner_alias": "prod", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03098", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(type, code, salary, date)\n managers(amount, salary, date, status)\nTask: Find id from sales where value exceeds the total value from managers for the same level.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE value > (\n SELECT SUM(value) FROM managers AS mgr\n WHERE mgr.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03099", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(code, amount, salary, status)\n items(level, amount, id, date)\nTask: Find id from categories where amount exceeds the count of amount from items for the same id.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE amount > (\n SELECT COUNT(amount) FROM items AS lne\n WHERE lne.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03100", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(salary, value, level, name)\n orders(name, value, date, amount)\nTask: Find id from customers where a matching record exists in orders with the same type.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "orders", "outer_alias": "cust", "inner_alias": "ord", "proj_col": "id", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03101", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(type, value, amount, code)\n tasks(status, date, value, code)\nTask: Find value from projects where a matching record exists in tasks with the same status.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "tasks", "outer_alias": "prj", "inner_alias": "tsk", "proj_col": "value", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03102", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(level, status, type, amount)\n sales(amount, id, value, level)\nTask: Retrieve id from branches with value above the AVG(salary) of sales rows sharing the same code.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE value > (\n SELECT AVG(salary) FROM sales AS sale\n WHERE sale.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "sales", "outer_alias": "brc", "inner_alias": "sale", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03103", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(id, value, type, code)\n items(type, code, id, salary)\nTask: Find id from managers where a matching record exists in items with the same code.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "items", "outer_alias": "mgr", "inner_alias": "lne", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03104", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(status, date, id, amount)\n categories(status, code, level, name)\nTask: Find value from customers where a matching record exists in categories with the same status.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "categories", "outer_alias": "cust", "inner_alias": "catg", "proj_col": "value", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03105", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(type, code, id, amount)\n employees(status, amount, level, id)\nTask: Find value from products where id appears in employees entries with matching type.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "employees", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03106", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(date, id, name, value)\n customers(date, code, value, amount)\nTask: Find code from employees where type appears in customers entries with matching id.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "customers", "outer_alias": "emp", "inner_alias": "cust", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03107", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(level, status, id, value)\n requests(date, amount, level, code)\nTask: Find salary from managers where a matching record exists in requests with the same type.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03108", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(code, salary, status, amount)\n products(code, value, salary, amount)\nTask: Find salary from accounts where value exceeds the maximum amount from products for the same code.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE value > (\n SELECT MAX(amount) FROM products AS prod\n WHERE prod.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03109", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(name, status, date, code)\n customers(type, date, name, level)\nTask: Retrieve amount from orders with salary above the COUNT(amount) of customers rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE salary > (\n SELECT COUNT(amount) FROM customers AS cust\n WHERE cust.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "customers", "outer_alias": "ord", "inner_alias": "cust", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03110", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(id, status, amount, code)\n projects(id, name, salary, type)\nTask: Find name from items where amount exceeds the minimum amount from projects for the same level.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE amount > (\n SELECT MIN(amount) FROM projects AS prj\n WHERE prj.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "projects", "outer_alias": "lne", "inner_alias": "prj", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03111", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(type, code, amount, level)\n transactions(id, level, value, code)\nTask: Retrieve amount from shipments that have at least one corresponding entry in transactions sharing the same id.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "transactions", "outer_alias": "shp", "inner_alias": "txn", "proj_col": "amount", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03112", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(id, date, name, amount)\n managers(value, type, name, salary)\nTask: Find id from regions where a matching record exists in managers with the same id.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "managers", "outer_alias": "rgn", "inner_alias": "mgr", "proj_col": "id", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03113", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(code, type, value, id)\n products(name, salary, date, code)\nTask: Retrieve name from accounts with value above the SUM(amount) of products rows sharing the same type.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE value > (\n SELECT SUM(amount) FROM products AS prod\n WHERE prod.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03114", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(type, amount, salary, level)\n invoices(value, id, level, type)\nTask: Retrieve salary from regions that have at least one corresponding entry in invoices sharing the same status.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "invoices", "outer_alias": "rgn", "inner_alias": "inv", "proj_col": "salary", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03115", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(type, value, status, id)\n regions(amount, name, value, status)\nTask: Retrieve amount from staff that have at least one corresponding entry in regions sharing the same type.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "regions", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "amount", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03116", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(id, date, value, status)\n branches(type, salary, name, amount)\nTask: Find id from managers where value exceeds the total amount from branches for the same level.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE value > (\n SELECT SUM(amount) FROM branches AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "branches", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03117", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(salary, status, id, name)\n categories(type, amount, level, date)\nTask: Retrieve value from invoices that have at least one corresponding entry in categories sharing the same status.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "categories", "outer_alias": "inv", "inner_alias": "catg", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03118", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(salary, status, amount, name)\n orders(value, id, type, date)\nTask: Find salary from requests where a matching record exists in orders with the same level.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "orders", "outer_alias": "ordr", "inner_alias": "ord", "proj_col": "salary", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03119", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(code, date, amount, id)\n employees(amount, status, type, date)\nTask: Find name from projects where type appears in employees entries with matching status.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "employees", "outer_alias": "prj", "inner_alias": "emp", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03120", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(status, type, amount, value)\n regions(date, salary, value, amount)\nTask: Find name from orders where type appears in regions entries with matching status.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE type IN (\n SELECT type FROM regions AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "regions", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03121", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(value, type, status, salary)\n invoices(code, id, amount, level)\nTask: Retrieve value from employees whose id is found in invoices rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE id IN (\n SELECT id FROM invoices AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03122", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(name, status, id, date)\n items(name, level, salary, amount)\nTask: Retrieve code from sales whose code is found in items rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE code IN (\n SELECT code FROM items AS lne\n WHERE lne.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "items", "outer_alias": "sale", "inner_alias": "lne", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03123", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(date, code, salary, status)\n requests(salary, status, date, value)\nTask: Find name from items where value exceeds the count of amount from requests for the same code.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE value > (\n SELECT COUNT(amount) FROM requests AS ordr\n WHERE ordr.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "requests", "outer_alias": "lne", "inner_alias": "ordr", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03124", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(status, type, value, id)\n managers(type, date, id, amount)\nTask: Find amount from sales where code appears in managers entries with matching code.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE code IN (\n SELECT code FROM managers AS mgr\n WHERE mgr.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03125", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(level, code, status, name)\n employees(salary, id, value, amount)\nTask: Find value from categories where value exceeds the total salary from employees for the same level.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE value > (\n SELECT SUM(salary) FROM employees AS emp\n WHERE emp.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "employees", "outer_alias": "catg", "inner_alias": "emp", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03126", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(code, date, name, salary)\n staff(name, type, salary, status)\nTask: Find value from categories where salary exceeds the total amount from staff for the same code.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE salary > (\n SELECT SUM(amount) FROM staff AS empl\n WHERE empl.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "staff", "outer_alias": "catg", "inner_alias": "empl", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03127", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(level, amount, type, code)\n shipments(id, status, amount, level)\nTask: Select amount from invoices where type exists in shipments for the same level.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM shipments AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03128", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(amount, id, salary, code)\n tasks(level, code, name, salary)\nTask: Retrieve code from departments that have at least one corresponding entry in tasks sharing the same type.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03129", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(salary, id, level, code)\n invoices(type, date, amount, id)\nTask: Find id from regions where value exceeds the average amount from invoices for the same code.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE value > (\n SELECT AVG(amount) FROM invoices AS inv\n WHERE inv.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "invoices", "outer_alias": "rgn", "inner_alias": "inv", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03130", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(type, amount, code, level)\n transactions(type, date, level, id)\nTask: Find salary from departments where a matching record exists in transactions with the same code.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "transactions", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03131", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(name, salary, type, status)\n accounts(date, name, level, status)\nTask: Retrieve salary from items that have at least one corresponding entry in accounts sharing the same type.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "accounts", "outer_alias": "lne", "inner_alias": "acct", "proj_col": "salary", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03132", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(level, salary, id, value)\n customers(amount, status, code, date)\nTask: Find code from invoices where id appears in customers entries with matching id.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM customers AS cust\n WHERE cust.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "customers", "outer_alias": "inv", "inner_alias": "cust", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03133", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(code, date, amount, level)\n staff(status, value, id, salary)\nTask: Retrieve value from regions that have at least one corresponding entry in staff sharing the same id.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "staff", "outer_alias": "rgn", "inner_alias": "empl", "proj_col": "value", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03134", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(name, value, amount, code)\n accounts(value, name, level, id)\nTask: Retrieve name from employees that have at least one corresponding entry in accounts sharing the same code.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "accounts", "outer_alias": "emp", "inner_alias": "acct", "proj_col": "name", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03135", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(level, date, amount, name)\n orders(value, code, date, level)\nTask: Retrieve id from employees with value above the COUNT(value) of orders rows sharing the same id.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE value > (\n SELECT COUNT(value) FROM orders AS ord\n WHERE ord.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "orders", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03136", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(type, value, level, status)\n sales(name, value, salary, date)\nTask: Find value from tasks where salary exceeds the average value from sales for the same code.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE salary > (\n SELECT AVG(value) FROM sales AS sale\n WHERE sale.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "sales", "outer_alias": "tsk", "inner_alias": "sale", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03137", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(type, level, salary, value)\n sales(date, status, level, type)\nTask: Find salary from items where type appears in sales entries with matching type.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE type IN (\n SELECT type FROM sales AS sale\n WHERE sale.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "sales", "outer_alias": "lne", "inner_alias": "sale", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03138", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(salary, id, status, code)\n transactions(amount, code, salary, type)\nTask: Find code from products where a matching record exists in transactions with the same status.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03139", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(type, code, salary, date)\n managers(id, value, type, amount)\nTask: Retrieve value from employees with salary above the SUM(amount) of managers rows sharing the same type.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE salary > (\n SELECT SUM(amount) FROM managers AS mgr\n WHERE mgr.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03140", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(name, level, status, value)\n products(name, date, value, id)\nTask: Find id from tasks where value exceeds the average value from products for the same type.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE value > (\n SELECT AVG(value) FROM products AS prod\n WHERE prod.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "products", "outer_alias": "tsk", "inner_alias": "prod", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03141", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(amount, date, salary, status)\n invoices(amount, name, salary, id)\nTask: Select code from sales where code exists in invoices for the same level.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE code IN (\n SELECT code FROM invoices AS inv\n WHERE inv.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "invoices", "outer_alias": "sale", "inner_alias": "inv", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03142", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(date, type, status, id)\n sales(value, type, salary, id)\nTask: Retrieve name from branches with salary above the MAX(amount) of sales rows sharing the same code.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE salary > (\n SELECT MAX(amount) FROM sales AS sale\n WHERE sale.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "sales", "outer_alias": "brc", "inner_alias": "sale", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03143", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(type, amount, id, date)\n products(type, status, salary, amount)\nTask: Find amount from items where a matching record exists in products with the same level.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "products", "outer_alias": "lne", "inner_alias": "prod", "proj_col": "amount", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03144", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(id, level, type, amount)\n projects(status, date, name, type)\nTask: Select salary from tasks where level exists in projects for the same level.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "projects", "outer_alias": "tsk", "inner_alias": "prj", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03145", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(amount, code, status, level)\n categories(salary, type, name, amount)\nTask: Find code from invoices where a matching record exists in categories with the same type.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "categories", "outer_alias": "inv", "inner_alias": "catg", "proj_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03146", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(code, name, value, status)\n staff(status, date, code, amount)\nTask: Find name from orders where salary exceeds the average amount from staff for the same status.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE salary > (\n SELECT AVG(amount) FROM staff AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "staff", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03147", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(code, type, level, name)\n employees(id, date, type, value)\nTask: Find value from shipments where a matching record exists in employees with the same code.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "employees", "outer_alias": "shp", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03148", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(code, level, date, salary)\n departments(amount, salary, value, date)\nTask: Retrieve id from branches whose id is found in departments rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE id IN (\n SELECT id FROM departments AS dept\n WHERE dept.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "departments", "outer_alias": "brc", "inner_alias": "dept", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03149", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(level, date, name, amount)\n managers(date, status, amount, type)\nTask: Find id from orders where salary exceeds the count of amount from managers for the same code.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE salary > (\n SELECT COUNT(amount) FROM managers AS mgr\n WHERE mgr.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "managers", "outer_alias": "ord", "inner_alias": "mgr", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03150", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(amount, value, type, salary)\n accounts(status, name, salary, value)\nTask: Find salary from schedules where amount exceeds the total value from accounts for the same status.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE amount > (\n SELECT SUM(value) FROM accounts AS acct\n WHERE acct.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "accounts", "outer_alias": "schd", "inner_alias": "acct", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03151", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(level, status, type, amount)\n schedules(value, type, date, salary)\nTask: Find salary from regions where status appears in schedules entries with matching status.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE status IN (\n SELECT status FROM schedules AS schd\n WHERE schd.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "schedules", "outer_alias": "rgn", "inner_alias": "schd", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03152", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(salary, code, date, type)\n branches(type, date, status, salary)\nTask: Retrieve salary from accounts that have at least one corresponding entry in branches sharing the same type.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "branches", "outer_alias": "acct", "inner_alias": "brc", "proj_col": "salary", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03153", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(level, amount, type, code)\n departments(level, code, id, date)\nTask: Retrieve amount from sales whose level is found in departments rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "departments", "outer_alias": "sale", "inner_alias": "dept", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03154", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(id, salary, date, amount)\n employees(name, amount, code, level)\nTask: Select amount from schedules where id exists in employees for the same type.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03155", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(status, id, level, date)\n invoices(value, code, amount, level)\nTask: Retrieve salary from items with value above the MIN(value) of invoices rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE value > (\n SELECT MIN(value) FROM invoices AS inv\n WHERE inv.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "invoices", "outer_alias": "lne", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03156", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(code, amount, level, value)\n managers(status, type, code, name)\nTask: Find id from categories where amount exceeds the total value from managers for the same code.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE amount > (\n SELECT SUM(value) FROM managers AS mgr\n WHERE mgr.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "managers", "outer_alias": "catg", "inner_alias": "mgr", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03157", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, level, amount, salary)\n shipments(code, status, level, name)\nTask: Find value from regions where value exceeds the minimum salary from shipments for the same code.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE value > (\n SELECT MIN(salary) FROM shipments AS shp\n WHERE shp.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "shipments", "outer_alias": "rgn", "inner_alias": "shp", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03158", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(date, status, name, code)\n requests(amount, salary, type, status)\nTask: Retrieve name from regions with value above the SUM(amount) of requests rows sharing the same type.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE value > (\n SELECT SUM(amount) FROM requests AS ordr\n WHERE ordr.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "requests", "outer_alias": "rgn", "inner_alias": "ordr", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03159", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(level, name, value, code)\n items(salary, amount, id, value)\nTask: Retrieve amount from transactions that have at least one corresponding entry in items sharing the same code.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "items", "outer_alias": "txn", "inner_alias": "lne", "proj_col": "amount", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03160", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(date, id, level, code)\n products(status, value, name, id)\nTask: Find id from requests where a matching record exists in products with the same id.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "products", "outer_alias": "ordr", "inner_alias": "prod", "proj_col": "id", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03161", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(amount, id, date, status)\n customers(status, code, date, id)\nTask: Retrieve id from projects whose code is found in customers rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "customers", "outer_alias": "prj", "inner_alias": "cust", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03162", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(id, code, salary, status)\n staff(id, date, salary, amount)\nTask: Find name from accounts where salary exceeds the maximum amount from staff for the same type.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE salary > (\n SELECT MAX(amount) FROM staff AS empl\n WHERE empl.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03163", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(code, status, salary, id)\n regions(name, id, value, amount)\nTask: Select salary from shipments where type exists in regions for the same status.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM regions AS rgn\n WHERE rgn.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "regions", "outer_alias": "shp", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03164", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(status, amount, name, date)\n customers(value, level, amount, id)\nTask: Find amount from invoices where id appears in customers entries with matching type.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM customers AS cust\n WHERE cust.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "customers", "outer_alias": "inv", "inner_alias": "cust", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03165", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(code, type, level, amount)\n managers(name, salary, level, id)\nTask: Retrieve salary from items that have at least one corresponding entry in managers sharing the same status.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "managers", "outer_alias": "lne", "inner_alias": "mgr", "proj_col": "salary", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03166", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(code, name, id, salary)\n managers(code, name, amount, value)\nTask: Retrieve salary from branches whose level is found in managers rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03167", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(name, salary, amount, status)\n sales(code, id, salary, amount)\nTask: Select value from accounts where level exists in sales for the same status.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM sales AS sale\n WHERE sale.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "sales", "outer_alias": "acct", "inner_alias": "sale", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03168", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(salary, value, id, name)\n categories(value, id, type, name)\nTask: Find name from managers where a matching record exists in categories with the same code.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "categories", "outer_alias": "mgr", "inner_alias": "catg", "proj_col": "name", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03169", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(amount, date, type, id)\n customers(code, amount, id, status)\nTask: Retrieve value from branches that have at least one corresponding entry in customers sharing the same type.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "customers", "outer_alias": "brc", "inner_alias": "cust", "proj_col": "value", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03170", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(status, code, type, name)\n orders(value, code, salary, id)\nTask: Retrieve salary from departments whose id is found in orders rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE id IN (\n SELECT id FROM orders AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "orders", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03171", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(status, name, amount, type)\n invoices(value, level, code, date)\nTask: Select id from branches where status exists in invoices for the same code.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE status IN (\n SELECT status FROM invoices AS inv\n WHERE inv.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "invoices", "outer_alias": "brc", "inner_alias": "inv", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03172", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(level, name, id, salary)\n requests(status, level, id, code)\nTask: Find id from branches where a matching record exists in requests with the same id.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "requests", "outer_alias": "brc", "inner_alias": "ordr", "proj_col": "id", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03173", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(status, name, code, id)\n transactions(code, status, name, level)\nTask: Retrieve id from schedules with value above the MIN(amount) of transactions rows sharing the same status.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE value > (\n SELECT MIN(amount) FROM transactions AS txn\n WHERE txn.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "transactions", "outer_alias": "schd", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03174", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(status, salary, level, code)\n requests(id, name, code, date)\nTask: Retrieve name from projects with salary above the MIN(salary) of requests rows sharing the same status.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE salary > (\n SELECT MIN(salary) FROM requests AS ordr\n WHERE ordr.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03175", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(value, type, status, id)\n orders(id, level, status, amount)\nTask: Retrieve name from managers whose level is found in orders rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "orders", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03176", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(name, amount, date, value)\n accounts(value, level, status, amount)\nTask: Find salary from managers where amount exceeds the total value from accounts for the same status.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE amount > (\n SELECT SUM(value) FROM accounts AS acct\n WHERE acct.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "accounts", "outer_alias": "mgr", "inner_alias": "acct", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03177", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(status, amount, name, date)\n orders(date, type, id, level)\nTask: Retrieve amount from transactions whose code is found in orders rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM orders AS ord\n WHERE ord.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "orders", "outer_alias": "txn", "inner_alias": "ord", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03178", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(code, date, amount, status)\n branches(date, amount, level, code)\nTask: Find name from transactions where a matching record exists in branches with the same status.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "branches", "outer_alias": "txn", "inner_alias": "brc", "proj_col": "name", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03179", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(id, name, date, code)\n shipments(salary, code, status, name)\nTask: Retrieve code from staff with salary above the MIN(value) of shipments rows sharing the same status.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE salary > (\n SELECT MIN(value) FROM shipments AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03180", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(date, status, level, name)\n regions(date, type, value, id)\nTask: Retrieve value from departments with amount above the COUNT(value) of regions rows sharing the same code.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE amount > (\n SELECT COUNT(value) FROM regions AS rgn\n WHERE rgn.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "regions", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03181", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(name, code, level, amount)\n invoices(id, salary, type, value)\nTask: Retrieve salary from sales that have at least one corresponding entry in invoices sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "invoices", "outer_alias": "sale", "inner_alias": "inv", "proj_col": "salary", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03182", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(name, salary, value, type)\n transactions(value, level, status, amount)\nTask: Find amount from branches where a matching record exists in transactions with the same id.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "transactions", "outer_alias": "brc", "inner_alias": "txn", "proj_col": "amount", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03183", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(level, value, name, code)\n employees(amount, date, level, name)\nTask: Retrieve name from items whose level is found in employees rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03184", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(type, date, salary, status)\n requests(status, amount, type, salary)\nTask: Find value from customers where amount exceeds the count of salary from requests for the same id.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE amount > (\n SELECT COUNT(salary) FROM requests AS ordr\n WHERE ordr.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "requests", "outer_alias": "cust", "inner_alias": "ordr", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03185", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(id, status, type, date)\n projects(type, status, name, id)\nTask: Retrieve salary from accounts with amount above the AVG(amount) of projects rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE amount > (\n SELECT AVG(amount) FROM projects AS prj\n WHERE prj.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "projects", "outer_alias": "acct", "inner_alias": "prj", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03186", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(name, status, salary, date)\n categories(id, name, status, level)\nTask: Retrieve amount from customers with salary above the SUM(salary) of categories rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE salary > (\n SELECT SUM(salary) FROM categories AS catg\n WHERE catg.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "categories", "outer_alias": "cust", "inner_alias": "catg", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03187", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(value, amount, type, id)\n products(salary, value, level, date)\nTask: Retrieve id from shipments that have at least one corresponding entry in products sharing the same id.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "id", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03188", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(value, date, type, level)\n products(type, value, level, status)\nTask: Select code from accounts where status exists in products for the same level.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03189", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(name, salary, value, status)\n branches(value, id, name, type)\nTask: Find code from shipments where amount exceeds the average salary from branches for the same type.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE amount > (\n SELECT AVG(salary) FROM branches AS brc\n WHERE brc.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "branches", "outer_alias": "shp", "inner_alias": "brc", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03190", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(amount, value, level, salary)\n tasks(salary, name, code, type)\nTask: Find name from products where amount exceeds the maximum salary from tasks for the same code.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE amount > (\n SELECT MAX(salary) FROM tasks AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "tasks", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03191", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(name, id, status, value)\n accounts(type, id, value, amount)\nTask: Find amount from customers where value exceeds the maximum salary from accounts for the same code.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE value > (\n SELECT MAX(salary) FROM accounts AS acct\n WHERE acct.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "accounts", "outer_alias": "cust", "inner_alias": "acct", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03192", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(code, status, value, type)\n sales(status, id, code, level)\nTask: Find salary from tasks where a matching record exists in sales with the same level.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "sales", "outer_alias": "tsk", "inner_alias": "sale", "proj_col": "salary", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03193", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(name, code, level, type)\n managers(amount, type, salary, code)\nTask: Retrieve code from projects whose level is found in managers rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "managers", "outer_alias": "prj", "inner_alias": "mgr", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03194", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(amount, status, code, type)\n branches(date, type, code, name)\nTask: Retrieve amount from sales whose type is found in branches rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE type IN (\n SELECT type FROM branches AS brc\n WHERE brc.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "branches", "outer_alias": "sale", "inner_alias": "brc", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03195", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(id, amount, value, status)\n customers(type, amount, status, value)\nTask: Find salary from shipments where a matching record exists in customers with the same id.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "salary", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03196", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(value, name, id, code)\n staff(amount, type, date, status)\nTask: Retrieve code from orders that have at least one corresponding entry in staff sharing the same type.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "staff", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03197", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(salary, name, id, type)\n departments(status, salary, date, code)\nTask: Find salary from projects where salary exceeds the count of value from departments for the same status.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE salary > (\n SELECT COUNT(value) FROM departments AS dept\n WHERE dept.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "departments", "outer_alias": "prj", "inner_alias": "dept", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03198", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(code, salary, amount, date)\n categories(level, value, id, status)\nTask: Find id from customers where a matching record exists in categories with the same id.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "categories", "outer_alias": "cust", "inner_alias": "catg", "proj_col": "id", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03199", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(id, date, type, name)\n accounts(id, type, level, name)\nTask: Retrieve value from schedules whose code is found in accounts rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "accounts", "outer_alias": "schd", "inner_alias": "acct", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03200", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(name, level, code, date)\n tasks(id, type, value, code)\nTask: Find salary from accounts where a matching record exists in tasks with the same status.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "tasks", "outer_alias": "acct", "inner_alias": "tsk", "proj_col": "salary", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03201", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(amount, id, salary, name)\n invoices(level, type, code, value)\nTask: Retrieve code from transactions that have at least one corresponding entry in invoices sharing the same id.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "invoices", "outer_alias": "txn", "inner_alias": "inv", "proj_col": "code", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03202", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(level, name, code, value)\n managers(level, value, type, salary)\nTask: Select value from branches where status exists in managers for the same type.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03203", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(type, name, salary, status)\n schedules(id, level, code, name)\nTask: Find salary from items where a matching record exists in schedules with the same id.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "schedules", "outer_alias": "lne", "inner_alias": "schd", "proj_col": "salary", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03204", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(level, type, salary, date)\n categories(date, code, type, status)\nTask: Find id from employees where a matching record exists in categories with the same level.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "categories", "outer_alias": "emp", "inner_alias": "catg", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03205", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(id, code, value, date)\n employees(type, code, salary, status)\nTask: Select code from projects where type exists in employees for the same code.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "employees", "outer_alias": "prj", "inner_alias": "emp", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03206", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(name, value, salary, status)\n accounts(type, name, code, date)\nTask: Select name from employees where status exists in accounts for the same id.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE status IN (\n SELECT status FROM accounts AS acct\n WHERE acct.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "accounts", "outer_alias": "emp", "inner_alias": "acct", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03207", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(date, id, status, type)\n transactions(amount, id, level, value)\nTask: Retrieve code from schedules with value above the MIN(salary) of transactions rows sharing the same code.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE value > (\n SELECT MIN(salary) FROM transactions AS txn\n WHERE txn.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "transactions", "outer_alias": "schd", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03208", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(amount, level, value, name)\n staff(salary, level, type, name)\nTask: Find amount from products where amount exceeds the total value from staff for the same type.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE amount > (\n SELECT SUM(value) FROM staff AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03209", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(level, value, type, salary)\n schedules(amount, value, status, level)\nTask: Find name from invoices where salary exceeds the total amount from schedules for the same id.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE salary > (\n SELECT SUM(amount) FROM schedules AS schd\n WHERE schd.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03210", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(salary, name, level, id)\n projects(code, level, id, name)\nTask: Find amount from staff where amount exceeds the total amount from projects for the same status.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE amount > (\n SELECT SUM(amount) FROM projects AS prj\n WHERE prj.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "projects", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03211", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(type, level, id, amount)\n items(code, name, amount, type)\nTask: Retrieve salary from orders whose status is found in items rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03212", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(date, status, level, amount)\n shipments(status, salary, level, id)\nTask: Retrieve id from categories with salary above the MIN(amount) of shipments rows sharing the same level.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE salary > (\n SELECT MIN(amount) FROM shipments AS shp\n WHERE shp.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "shipments", "outer_alias": "catg", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03213", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(status, name, date, salary)\n accounts(amount, status, salary, type)\nTask: Retrieve amount from invoices that have at least one corresponding entry in accounts sharing the same code.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03214", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(name, status, code, salary)\n schedules(value, level, type, date)\nTask: Find value from departments where salary exceeds the count of salary from schedules for the same code.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE salary > (\n SELECT COUNT(salary) FROM schedules AS schd\n WHERE schd.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "schedules", "outer_alias": "dept", "inner_alias": "schd", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03215", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(level, code, value, date)\n invoices(status, amount, name, code)\nTask: Retrieve name from shipments whose id is found in invoices rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE id IN (\n SELECT id FROM invoices AS inv\n WHERE inv.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "invoices", "outer_alias": "shp", "inner_alias": "inv", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03216", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(level, id, amount, salary)\n projects(id, status, amount, level)\nTask: Find value from products where a matching record exists in projects with the same code.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "projects", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03217", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(salary, type, level, value)\n employees(id, value, name, date)\nTask: Find salary from customers where level appears in employees entries with matching code.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03218", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(name, status, type, date)\n accounts(name, amount, salary, type)\nTask: Find amount from employees where a matching record exists in accounts with the same code.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "accounts", "outer_alias": "emp", "inner_alias": "acct", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03219", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(type, status, amount, date)\n employees(salary, type, code, level)\nTask: Select value from tasks where status exists in employees for the same id.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "employees", "outer_alias": "tsk", "inner_alias": "emp", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03220", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(code, status, id, level)\n managers(id, type, code, level)\nTask: Find salary from categories where a matching record exists in managers with the same type.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "managers", "outer_alias": "catg", "inner_alias": "mgr", "proj_col": "salary", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03221", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(id, value, code, amount)\n departments(status, date, id, type)\nTask: Retrieve salary from branches with amount above the MIN(value) of departments rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE amount > (\n SELECT MIN(value) FROM departments AS dept\n WHERE dept.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "departments", "outer_alias": "brc", "inner_alias": "dept", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03222", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(code, salary, id, value)\n branches(salary, id, date, type)\nTask: Retrieve value from departments that have at least one corresponding entry in branches sharing the same level.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "branches", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "value", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03223", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(name, amount, level, value)\n products(type, date, code, id)\nTask: Find amount from accounts where value exceeds the count of amount from products for the same type.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE value > (\n SELECT COUNT(amount) FROM products AS prod\n WHERE prod.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03224", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(name, salary, value, type)\n regions(status, type, level, code)\nTask: Retrieve name from schedules with salary above the MIN(salary) of regions rows sharing the same code.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE salary > (\n SELECT MIN(salary) FROM regions AS rgn\n WHERE rgn.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03225", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(level, value, id, status)\n invoices(type, value, id, date)\nTask: Find amount from shipments where a matching record exists in invoices with the same type.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "invoices", "outer_alias": "shp", "inner_alias": "inv", "proj_col": "amount", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03226", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(id, amount, date, type)\n orders(type, amount, value, code)\nTask: Find amount from invoices where level appears in orders entries with matching id.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "orders", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03227", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(code, value, amount, date)\n managers(date, id, level, value)\nTask: Find code from staff where a matching record exists in managers with the same status.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "managers", "outer_alias": "empl", "inner_alias": "mgr", "proj_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03228", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(status, amount, code, id)\n products(status, name, amount, salary)\nTask: Find name from accounts where amount exceeds the count of salary from products for the same level.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE amount > (\n SELECT COUNT(salary) FROM products AS prod\n WHERE prod.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03229", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(code, status, date, amount)\n invoices(date, code, salary, type)\nTask: Retrieve value from branches that have at least one corresponding entry in invoices sharing the same level.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "invoices", "outer_alias": "brc", "inner_alias": "inv", "proj_col": "value", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03230", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(value, code, status, type)\n requests(type, amount, level, id)\nTask: Find value from sales where value exceeds the average salary from requests for the same code.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE value > (\n SELECT AVG(salary) FROM requests AS ordr\n WHERE ordr.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "requests", "outer_alias": "sale", "inner_alias": "ordr", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03231", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, amount, type, date)\n branches(level, id, name, code)\nTask: Find salary from regions where amount exceeds the maximum value from branches for the same id.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE amount > (\n SELECT MAX(value) FROM branches AS brc\n WHERE brc.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "branches", "outer_alias": "rgn", "inner_alias": "brc", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03232", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(amount, code, salary, date)\n departments(type, status, value, name)\nTask: Retrieve value from items whose level is found in departments rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "departments", "outer_alias": "lne", "inner_alias": "dept", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03233", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(level, type, name, status)\n categories(id, type, name, date)\nTask: Retrieve name from schedules whose code is found in categories rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM categories AS catg\n WHERE catg.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "categories", "outer_alias": "schd", "inner_alias": "catg", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03234", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(date, salary, name, level)\n schedules(id, type, code, amount)\nTask: Retrieve value from departments that have at least one corresponding entry in schedules sharing the same id.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "schedules", "outer_alias": "dept", "inner_alias": "schd", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03235", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(id, type, name, value)\n projects(salary, status, level, amount)\nTask: Find value from sales where amount exceeds the average salary from projects for the same level.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE amount > (\n SELECT AVG(salary) FROM projects AS prj\n WHERE prj.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "projects", "outer_alias": "sale", "inner_alias": "prj", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03236", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(status, name, code, id)\n customers(id, salary, name, code)\nTask: Find id from accounts where type appears in customers entries with matching id.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "customers", "outer_alias": "acct", "inner_alias": "cust", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03237", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(level, type, date, name)\n staff(id, name, status, level)\nTask: Find name from shipments where salary exceeds the average value from staff for the same code.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE salary > (\n SELECT AVG(value) FROM staff AS empl\n WHERE empl.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "staff", "outer_alias": "shp", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03238", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(status, date, salary, type)\n customers(value, id, salary, code)\nTask: Retrieve name from orders that have at least one corresponding entry in customers sharing the same code.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "customers", "outer_alias": "ord", "inner_alias": "cust", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03239", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(date, code, amount, salary)\n customers(level, date, amount, id)\nTask: Retrieve id from departments whose status is found in customers rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE status IN (\n SELECT status FROM customers AS cust\n WHERE cust.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "customers", "outer_alias": "dept", "inner_alias": "cust", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03240", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(level, status, salary, id)\n categories(amount, name, id, salary)\nTask: Retrieve value from invoices that have at least one corresponding entry in categories sharing the same id.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "categories", "outer_alias": "inv", "inner_alias": "catg", "proj_col": "value", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03241", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(level, type, amount, value)\n categories(type, date, amount, value)\nTask: Find id from sales where a matching record exists in categories with the same code.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "categories", "outer_alias": "sale", "inner_alias": "catg", "proj_col": "id", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03242", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(level, value, amount, name)\n employees(level, code, date, id)\nTask: Find salary from transactions where id appears in employees entries with matching level.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03243", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(id, date, name, value)\n customers(salary, level, amount, status)\nTask: Retrieve salary from projects that have at least one corresponding entry in customers sharing the same status.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "customers", "outer_alias": "prj", "inner_alias": "cust", "proj_col": "salary", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03244", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(date, code, level, salary)\n categories(id, date, level, salary)\nTask: Find amount from managers where a matching record exists in categories with the same status.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "categories", "outer_alias": "mgr", "inner_alias": "catg", "proj_col": "amount", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03245", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(status, id, salary, date)\n tasks(id, name, status, amount)\nTask: Find code from transactions where amount exceeds the minimum amount from tasks for the same id.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE amount > (\n SELECT MIN(amount) FROM tasks AS tsk\n WHERE tsk.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "tasks", "outer_alias": "txn", "inner_alias": "tsk", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03246", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(date, amount, status, id)\n departments(id, name, amount, code)\nTask: Find salary from requests where a matching record exists in departments with the same status.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "departments", "outer_alias": "ordr", "inner_alias": "dept", "proj_col": "salary", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03247", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(type, amount, status, level)\n departments(type, date, id, amount)\nTask: Retrieve amount from schedules with salary above the COUNT(salary) of departments rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE salary > (\n SELECT COUNT(salary) FROM departments AS dept\n WHERE dept.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "departments", "outer_alias": "schd", "inner_alias": "dept", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03248", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(name, date, status, amount)\n categories(salary, amount, status, type)\nTask: Retrieve name from requests that have at least one corresponding entry in categories sharing the same type.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "categories", "outer_alias": "ordr", "inner_alias": "catg", "proj_col": "name", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03249", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(status, level, salary, code)\n regions(id, name, status, code)\nTask: Retrieve name from tasks that have at least one corresponding entry in regions sharing the same level.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "regions", "outer_alias": "tsk", "inner_alias": "rgn", "proj_col": "name", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03250", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(id, date, amount, name)\n orders(value, amount, level, name)\nTask: Retrieve amount from branches that have at least one corresponding entry in orders sharing the same status.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "orders", "outer_alias": "brc", "inner_alias": "ord", "proj_col": "amount", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03251", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(code, level, type, date)\n employees(code, name, value, status)\nTask: Retrieve value from schedules with value above the SUM(amount) of employees rows sharing the same status.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE value > (\n SELECT SUM(amount) FROM employees AS emp\n WHERE emp.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03252", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(date, salary, status, id)\n branches(salary, amount, date, id)\nTask: Find value from sales where amount exceeds the total salary from branches for the same code.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE amount > (\n SELECT SUM(salary) FROM branches AS brc\n WHERE brc.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "branches", "outer_alias": "sale", "inner_alias": "brc", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03253", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(value, salary, date, code)\n shipments(salary, id, level, value)\nTask: Select salary from customers where code exists in shipments for the same code.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "shipments", "outer_alias": "cust", "inner_alias": "shp", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03254", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(id, type, status, salary)\n sales(date, value, level, salary)\nTask: Retrieve amount from staff whose id is found in sales rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE id IN (\n SELECT id FROM sales AS sale\n WHERE sale.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "sales", "outer_alias": "empl", "inner_alias": "sale", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03255", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(level, status, value, name)\n managers(status, date, amount, salary)\nTask: Find value from regions where value exceeds the average value from managers for the same level.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE value > (\n SELECT AVG(value) FROM managers AS mgr\n WHERE mgr.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "managers", "outer_alias": "rgn", "inner_alias": "mgr", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03256", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(name, salary, amount, date)\n tasks(value, salary, level, id)\nTask: Find name from invoices where level appears in tasks entries with matching status.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE level IN (\n SELECT level FROM tasks AS tsk\n WHERE tsk.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03257", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(id, code, type, amount)\n items(date, value, code, salary)\nTask: Retrieve id from branches that have at least one corresponding entry in items sharing the same code.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "items", "outer_alias": "brc", "inner_alias": "lne", "proj_col": "id", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03258", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(status, level, type, id)\n products(salary, name, id, value)\nTask: Find name from transactions where value exceeds the average salary from products for the same level.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE value > (\n SELECT AVG(salary) FROM products AS prod\n WHERE prod.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03259", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(type, amount, value, salary)\n departments(type, amount, status, level)\nTask: Find value from orders where a matching record exists in departments with the same id.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "departments", "outer_alias": "ord", "inner_alias": "dept", "proj_col": "value", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03260", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(code, level, value, type)\n branches(status, id, salary, type)\nTask: Retrieve value from requests that have at least one corresponding entry in branches sharing the same level.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "branches", "outer_alias": "ordr", "inner_alias": "brc", "proj_col": "value", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03261", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(name, amount, code, salary)\n categories(level, code, amount, type)\nTask: Retrieve salary from departments whose id is found in categories rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "categories", "outer_alias": "dept", "inner_alias": "catg", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03262", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(id, amount, level, code)\n products(level, code, salary, id)\nTask: Retrieve value from branches that have at least one corresponding entry in products sharing the same code.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "products", "outer_alias": "brc", "inner_alias": "prod", "proj_col": "value", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03263", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(code, status, amount, type)\n accounts(status, amount, value, code)\nTask: Retrieve amount from staff with amount above the SUM(value) of accounts rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE amount > (\n SELECT SUM(value) FROM accounts AS acct\n WHERE acct.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "accounts", "outer_alias": "empl", "inner_alias": "acct", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03264", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(level, code, id, name)\n schedules(status, type, level, amount)\nTask: Find name from shipments where a matching record exists in schedules with the same type.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "schedules", "outer_alias": "shp", "inner_alias": "schd", "proj_col": "name", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03265", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(level, name, id, amount)\n employees(value, status, salary, amount)\nTask: Retrieve id from branches whose code is found in employees rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "employees", "outer_alias": "brc", "inner_alias": "emp", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03266", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(id, level, type, code)\n transactions(salary, status, value, type)\nTask: Retrieve name from tasks whose level is found in transactions rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "transactions", "outer_alias": "tsk", "inner_alias": "txn", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03267", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(id, value, level, name)\n invoices(name, level, amount, code)\nTask: Select salary from customers where type exists in invoices for the same status.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03268", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(date, id, type, name)\n employees(code, id, type, level)\nTask: Find name from regions where a matching record exists in employees with the same status.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "name", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03269", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(salary, level, id, code)\n requests(salary, date, type, name)\nTask: Find salary from tasks where a matching record exists in requests with the same level.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03270", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, code, value, status)\n customers(id, level, date, salary)\nTask: Select amount from shipments where code exists in customers for the same code.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03271", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(salary, level, status, id)\n products(id, code, amount, level)\nTask: Retrieve amount from categories with salary above the MIN(salary) of products rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE salary > (\n SELECT MIN(salary) FROM products AS prod\n WHERE prod.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "products", "outer_alias": "catg", "inner_alias": "prod", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03272", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(code, status, id, level)\n regions(type, status, amount, date)\nTask: Retrieve id from invoices that have at least one corresponding entry in regions sharing the same level.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "regions", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03273", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(date, name, salary, code)\n orders(amount, salary, date, id)\nTask: Retrieve code from managers with value above the MAX(value) of orders rows sharing the same status.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE value > (\n SELECT MAX(value) FROM orders AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "orders", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03274", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(type, name, id, code)\n projects(salary, amount, status, type)\nTask: Retrieve value from customers with value above the SUM(value) of projects rows sharing the same status.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE value > (\n SELECT SUM(value) FROM projects AS prj\n WHERE prj.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "projects", "outer_alias": "cust", "inner_alias": "prj", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03275", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(salary, code, value, level)\n items(status, salary, date, amount)\nTask: Retrieve id from projects that have at least one corresponding entry in items sharing the same id.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "items", "outer_alias": "prj", "inner_alias": "lne", "proj_col": "id", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03276", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(type, salary, name, amount)\n transactions(id, date, code, type)\nTask: Find salary from orders where level appears in transactions entries with matching id.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03277", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(code, amount, value, level)\n departments(name, type, date, amount)\nTask: Retrieve amount from schedules that have at least one corresponding entry in departments sharing the same type.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "departments", "outer_alias": "schd", "inner_alias": "dept", "proj_col": "amount", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03278", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(level, amount, code, type)\n schedules(salary, status, level, date)\nTask: Find id from customers where amount exceeds the minimum salary from schedules for the same status.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE amount > (\n SELECT MIN(salary) FROM schedules AS schd\n WHERE schd.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "schedules", "outer_alias": "cust", "inner_alias": "schd", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03279", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(code, type, value, amount)\n projects(name, date, amount, type)\nTask: Find name from orders where a matching record exists in projects with the same type.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "projects", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03280", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(salary, id, status, value)\n customers(salary, code, id, level)\nTask: Find code from requests where value exceeds the average salary from customers for the same code.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE value > (\n SELECT AVG(salary) FROM customers AS cust\n WHERE cust.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "customers", "outer_alias": "ordr", "inner_alias": "cust", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03281", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(status, id, level, salary)\n tasks(code, salary, amount, type)\nTask: Find name from invoices where a matching record exists in tasks with the same type.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03282", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(value, salary, code, date)\n branches(level, code, value, date)\nTask: Retrieve code from categories whose level is found in branches rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03283", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(name, amount, status, salary)\n requests(date, status, value, name)\nTask: Find amount from items where a matching record exists in requests with the same type.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "requests", "outer_alias": "lne", "inner_alias": "ordr", "proj_col": "amount", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03284", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(name, level, salary, id)\n accounts(status, salary, amount, type)\nTask: Find value from branches where code appears in accounts entries with matching type.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "accounts", "outer_alias": "brc", "inner_alias": "acct", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03285", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(amount, value, code, date)\n managers(date, name, value, salary)\nTask: Find id from schedules where a matching record exists in managers with the same code.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "id", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03286", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(salary, status, type, code)\n sales(status, code, name, salary)\nTask: Select code from regions where code exists in sales for the same status.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM sales AS sale\n WHERE sale.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "sales", "outer_alias": "rgn", "inner_alias": "sale", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03287", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(salary, amount, date, type)\n employees(amount, salary, value, code)\nTask: Retrieve amount from requests whose id is found in employees rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "employees", "outer_alias": "ordr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03288", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(code, value, id, amount)\n transactions(value, amount, salary, status)\nTask: Retrieve id from branches whose status is found in transactions rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE status IN (\n SELECT status FROM transactions AS txn\n WHERE txn.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "transactions", "outer_alias": "brc", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03289", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(date, amount, value, name)\n orders(date, value, salary, amount)\nTask: Find salary from staff where amount exceeds the total amount from orders for the same level.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE amount > (\n SELECT SUM(amount) FROM orders AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "orders", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03290", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(code, level, status, type)\n invoices(type, id, level, amount)\nTask: Find salary from orders where type appears in invoices entries with matching id.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "invoices", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03291", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, status, value, amount)\n projects(name, status, date, salary)\nTask: Select name from shipments where level exists in projects for the same id.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "projects", "outer_alias": "shp", "inner_alias": "prj", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03292", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(amount, salary, code, id)\n tasks(level, type, amount, id)\nTask: Retrieve id from orders that have at least one corresponding entry in tasks sharing the same id.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "tasks", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03293", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(date, type, status, value)\n categories(id, salary, amount, type)\nTask: Retrieve value from invoices that have at least one corresponding entry in categories sharing the same code.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "categories", "outer_alias": "inv", "inner_alias": "catg", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03294", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(type, salary, amount, code)\n categories(value, status, code, id)\nTask: Find name from tasks where a matching record exists in categories with the same code.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "categories", "outer_alias": "tsk", "inner_alias": "catg", "proj_col": "name", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03295", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(value, amount, id, name)\n regions(code, amount, salary, id)\nTask: Retrieve code from branches that have at least one corresponding entry in regions sharing the same type.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "regions", "outer_alias": "brc", "inner_alias": "rgn", "proj_col": "code", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03296", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(level, type, name, salary)\n items(code, salary, value, level)\nTask: Find value from transactions where a matching record exists in items with the same id.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "items", "outer_alias": "txn", "inner_alias": "lne", "proj_col": "value", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03297", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(salary, status, amount, id)\n schedules(type, code, status, id)\nTask: Retrieve code from branches that have at least one corresponding entry in schedules sharing the same id.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "schedules", "outer_alias": "brc", "inner_alias": "schd", "proj_col": "code", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03298", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(type, level, value, amount)\n regions(name, date, id, status)\nTask: Find name from products where code appears in regions entries with matching type.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03299", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(date, salary, level, status)\n staff(id, value, status, salary)\nTask: Find code from sales where value exceeds the count of value from staff for the same id.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE value > (\n SELECT COUNT(value) FROM staff AS empl\n WHERE empl.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "staff", "outer_alias": "sale", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03300", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(date, salary, amount, status)\n employees(code, status, type, id)\nTask: Retrieve id from branches that have at least one corresponding entry in employees sharing the same status.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "employees", "outer_alias": "brc", "inner_alias": "emp", "proj_col": "id", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03301", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(type, name, level, salary)\n projects(level, amount, name, date)\nTask: Retrieve amount from sales with salary above the COUNT(salary) of projects rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE salary > (\n SELECT COUNT(salary) FROM projects AS prj\n WHERE prj.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "projects", "outer_alias": "sale", "inner_alias": "prj", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03302", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(status, type, salary, name)\n categories(status, level, amount, salary)\nTask: Retrieve code from tasks whose level is found in categories rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "categories", "outer_alias": "tsk", "inner_alias": "catg", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03303", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(type, status, date, level)\n orders(code, value, name, salary)\nTask: Select id from projects where type exists in orders for the same status.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE type IN (\n SELECT type FROM orders AS ord\n WHERE ord.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03304", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(code, id, amount, type)\n requests(value, status, type, code)\nTask: Retrieve name from managers with amount above the MIN(amount) of requests rows sharing the same code.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE amount > (\n SELECT MIN(amount) FROM requests AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03305", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(date, level, type, salary)\n projects(code, date, id, salary)\nTask: Find salary from shipments where a matching record exists in projects with the same id.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "projects", "outer_alias": "shp", "inner_alias": "prj", "proj_col": "salary", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03306", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(value, id, code, name)\n products(amount, salary, code, date)\nTask: Select name from employees where type exists in products for the same type.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE type IN (\n SELECT type FROM products AS prod\n WHERE prod.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03307", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(type, id, salary, level)\n staff(date, value, amount, name)\nTask: Retrieve name from branches with value above the MAX(salary) of staff rows sharing the same id.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE value > (\n SELECT MAX(salary) FROM staff AS empl\n WHERE empl.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "staff", "outer_alias": "brc", "inner_alias": "empl", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03308", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(type, id, code, status)\n transactions(id, name, date, level)\nTask: Retrieve id from accounts that have at least one corresponding entry in transactions sharing the same code.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "transactions", "outer_alias": "acct", "inner_alias": "txn", "proj_col": "id", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03309", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(salary, value, code, amount)\n products(date, salary, status, name)\nTask: Find id from departments where amount exceeds the minimum value from products for the same type.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE amount > (\n SELECT MIN(value) FROM products AS prod\n WHERE prod.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "products", "outer_alias": "dept", "inner_alias": "prod", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03310", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(value, amount, name, code)\n branches(date, type, name, id)\nTask: Retrieve id from categories with amount above the MIN(amount) of branches rows sharing the same code.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE amount > (\n SELECT MIN(amount) FROM branches AS brc\n WHERE brc.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03311", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(value, amount, id, type)\n departments(level, status, type, code)\nTask: Find amount from shipments where a matching record exists in departments with the same level.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "departments", "outer_alias": "shp", "inner_alias": "dept", "proj_col": "amount", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03312", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(level, salary, code, id)\n requests(salary, type, value, id)\nTask: Find value from regions where value exceeds the minimum salary from requests for the same status.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE value > (\n SELECT MIN(salary) FROM requests AS ordr\n WHERE ordr.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "requests", "outer_alias": "rgn", "inner_alias": "ordr", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03313", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(amount, status, type, level)\n tasks(value, name, type, code)\nTask: Retrieve value from shipments that have at least one corresponding entry in tasks sharing the same id.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "value", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03314", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(level, salary, name, code)\n customers(level, date, salary, type)\nTask: Retrieve code from shipments with amount above the SUM(amount) of customers rows sharing the same code.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE amount > (\n SELECT SUM(amount) FROM customers AS cust\n WHERE cust.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03315", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(code, value, level, type)\n schedules(salary, type, value, id)\nTask: Select amount from invoices where id exists in schedules for the same code.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03316", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(code, level, value, amount)\n branches(status, amount, level, name)\nTask: Select id from sales where status exists in branches for the same id.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "branches", "outer_alias": "sale", "inner_alias": "brc", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03317", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(amount, value, code, name)\n tasks(salary, value, date, level)\nTask: Retrieve code from orders with salary above the AVG(amount) of tasks rows sharing the same status.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE salary > (\n SELECT AVG(amount) FROM tasks AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "tasks", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03318", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(id, type, level, date)\n projects(status, level, name, amount)\nTask: Retrieve salary from schedules whose level is found in projects rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "projects", "outer_alias": "schd", "inner_alias": "prj", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03319", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(status, id, date, name)\n departments(amount, value, code, type)\nTask: Find salary from categories where value exceeds the total salary from departments for the same id.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE value > (\n SELECT SUM(salary) FROM departments AS dept\n WHERE dept.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "departments", "outer_alias": "catg", "inner_alias": "dept", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03320", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(level, salary, amount, id)\n requests(salary, date, status, level)\nTask: Find salary from categories where salary exceeds the average value from requests for the same id.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE salary > (\n SELECT AVG(value) FROM requests AS ordr\n WHERE ordr.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "requests", "outer_alias": "catg", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03321", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(date, name, type, id)\n employees(date, value, id, amount)\nTask: Retrieve id from transactions with salary above the MAX(amount) of employees rows sharing the same type.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE salary > (\n SELECT MAX(amount) FROM employees AS emp\n WHERE emp.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03322", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(status, name, value, amount)\n orders(level, salary, id, date)\nTask: Find salary from categories where a matching record exists in orders with the same id.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "orders", "outer_alias": "catg", "inner_alias": "ord", "proj_col": "salary", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03323", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(type, level, code, status)\n branches(type, date, name, status)\nTask: Select code from categories where id exists in branches for the same code.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE id IN (\n SELECT id FROM branches AS brc\n WHERE brc.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03324", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(type, code, id, salary)\n branches(type, amount, date, salary)\nTask: Retrieve amount from transactions with salary above the COUNT(value) of branches rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE salary > (\n SELECT COUNT(value) FROM branches AS brc\n WHERE brc.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "branches", "outer_alias": "txn", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03325", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(type, code, salary, date)\n employees(level, name, code, type)\nTask: Retrieve id from items with amount above the MIN(amount) of employees rows sharing the same id.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE amount > (\n SELECT MIN(amount) FROM employees AS emp\n WHERE emp.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03326", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(id, value, name, date)\n requests(value, status, date, type)\nTask: Retrieve name from projects whose level is found in requests rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE level IN (\n SELECT level FROM requests AS ordr\n WHERE ordr.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03327", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(value, code, level, status)\n transactions(id, date, level, value)\nTask: Find amount from staff where type appears in transactions entries with matching status.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE type IN (\n SELECT type FROM transactions AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "transactions", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03328", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(level, name, type, date)\n tasks(name, code, date, level)\nTask: Retrieve id from schedules that have at least one corresponding entry in tasks sharing the same code.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "tasks", "outer_alias": "schd", "inner_alias": "tsk", "proj_col": "id", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03329", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(name, status, level, date)\n managers(type, amount, date, name)\nTask: Retrieve name from transactions with salary above the AVG(value) of managers rows sharing the same id.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE salary > (\n SELECT AVG(value) FROM managers AS mgr\n WHERE mgr.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "managers", "outer_alias": "txn", "inner_alias": "mgr", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03330", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(id, status, date, value)\n tasks(name, amount, id, status)\nTask: Retrieve name from requests that have at least one corresponding entry in tasks sharing the same status.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "tasks", "outer_alias": "ordr", "inner_alias": "tsk", "proj_col": "name", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03331", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(id, status, date, type)\n departments(amount, type, id, date)\nTask: Find code from regions where amount exceeds the count of amount from departments for the same type.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE amount > (\n SELECT COUNT(amount) FROM departments AS dept\n WHERE dept.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "departments", "outer_alias": "rgn", "inner_alias": "dept", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03332", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(date, code, value, level)\n items(name, amount, salary, code)\nTask: Retrieve salary from accounts whose status is found in items rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "items", "outer_alias": "acct", "inner_alias": "lne", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03333", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(level, id, amount, status)\n departments(value, code, type, amount)\nTask: Retrieve value from invoices with value above the MAX(salary) of departments rows sharing the same status.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE value > (\n SELECT MAX(salary) FROM departments AS dept\n WHERE dept.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "departments", "outer_alias": "inv", "inner_alias": "dept", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03334", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(level, amount, status, code)\n sales(level, salary, type, name)\nTask: Retrieve id from staff that have at least one corresponding entry in sales sharing the same status.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "sales", "outer_alias": "empl", "inner_alias": "sale", "proj_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03335", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(date, code, type, amount)\n projects(type, id, code, level)\nTask: Find name from products where level appears in projects entries with matching id.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "projects", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03336", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(date, level, value, status)\n projects(amount, date, id, name)\nTask: Find value from items where a matching record exists in projects with the same level.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "projects", "outer_alias": "lne", "inner_alias": "prj", "proj_col": "value", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03337", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(code, id, salary, amount)\n shipments(amount, status, salary, code)\nTask: Select value from sales where status exists in shipments for the same type.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE status IN (\n SELECT status FROM shipments AS shp\n WHERE shp.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "shipments", "outer_alias": "sale", "inner_alias": "shp", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03338", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(status, type, value, level)\n managers(code, type, status, name)\nTask: Find name from projects where a matching record exists in managers with the same status.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "managers", "outer_alias": "prj", "inner_alias": "mgr", "proj_col": "name", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03339", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(salary, amount, date, name)\n managers(date, type, salary, status)\nTask: Retrieve id from regions that have at least one corresponding entry in managers sharing the same code.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "managers", "outer_alias": "rgn", "inner_alias": "mgr", "proj_col": "id", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03340", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(name, value, salary, type)\n invoices(type, salary, code, date)\nTask: Retrieve amount from staff with value above the SUM(amount) of invoices rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE value > (\n SELECT SUM(amount) FROM invoices AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "invoices", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03341", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(id, type, code, name)\n regions(value, code, name, status)\nTask: Retrieve code from staff with salary above the AVG(salary) of regions rows sharing the same id.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM regions AS rgn\n WHERE rgn.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "regions", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03342", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(code, name, id, type)\n orders(code, salary, value, name)\nTask: Retrieve name from projects that have at least one corresponding entry in orders sharing the same code.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "name", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03343", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(name, level, value, code)\n invoices(value, level, status, date)\nTask: Find amount from customers where level appears in invoices entries with matching type.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE level IN (\n SELECT level FROM invoices AS inv\n WHERE inv.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03344", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(level, status, id, name)\n regions(id, salary, status, level)\nTask: Retrieve id from items whose code is found in regions rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "regions", "outer_alias": "lne", "inner_alias": "rgn", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03345", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(value, id, level, type)\n customers(date, status, amount, value)\nTask: Retrieve value from departments with value above the AVG(amount) of customers rows sharing the same code.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE value > (\n SELECT AVG(amount) FROM customers AS cust\n WHERE cust.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "customers", "outer_alias": "dept", "inner_alias": "cust", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03346", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(date, type, salary, id)\n shipments(amount, code, id, type)\nTask: Retrieve code from managers that have at least one corresponding entry in shipments sharing the same type.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "shipments", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03347", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(code, type, status, amount)\n transactions(id, type, salary, code)\nTask: Find salary from sales where amount exceeds the count of value from transactions for the same code.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE amount > (\n SELECT COUNT(value) FROM transactions AS txn\n WHERE txn.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "transactions", "outer_alias": "sale", "inner_alias": "txn", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03348", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(id, level, name, type)\n transactions(amount, level, value, id)\nTask: Find id from categories where salary exceeds the maximum amount from transactions for the same code.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE salary > (\n SELECT MAX(amount) FROM transactions AS txn\n WHERE txn.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "transactions", "outer_alias": "catg", "inner_alias": "txn", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03349", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(type, id, level, code)\n managers(id, code, type, amount)\nTask: Select amount from products where level exists in managers for the same type.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "managers", "outer_alias": "prod", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03350", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(name, type, salary, code)\n items(date, status, amount, type)\nTask: Retrieve id from employees that have at least one corresponding entry in items sharing the same level.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "items", "outer_alias": "emp", "inner_alias": "lne", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03351", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(amount, value, type, salary)\n schedules(type, value, level, salary)\nTask: Retrieve value from sales with amount above the SUM(salary) of schedules rows sharing the same code.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE amount > (\n SELECT SUM(salary) FROM schedules AS schd\n WHERE schd.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "schedules", "outer_alias": "sale", "inner_alias": "schd", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03352", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(level, value, type, date)\n invoices(amount, level, type, code)\nTask: Retrieve salary from items with amount above the SUM(salary) of invoices rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE amount > (\n SELECT SUM(salary) FROM invoices AS inv\n WHERE inv.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "invoices", "outer_alias": "lne", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03353", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(id, salary, type, code)\n invoices(amount, code, salary, value)\nTask: Find name from transactions where salary exceeds the total amount from invoices for the same type.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE salary > (\n SELECT SUM(amount) FROM invoices AS inv\n WHERE inv.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "invoices", "outer_alias": "txn", "inner_alias": "inv", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03354", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(status, level, salary, value)\n customers(salary, type, value, id)\nTask: Select amount from employees where code exists in customers for the same level.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "customers", "outer_alias": "emp", "inner_alias": "cust", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03355", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(level, status, amount, value)\n staff(value, type, date, level)\nTask: Find amount from tasks where code appears in staff entries with matching status.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE code IN (\n SELECT code FROM staff AS empl\n WHERE empl.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "staff", "outer_alias": "tsk", "inner_alias": "empl", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03356", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(type, level, value, date)\n schedules(date, amount, name, code)\nTask: Find value from departments where level appears in schedules entries with matching status.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE level IN (\n SELECT level FROM schedules AS schd\n WHERE schd.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "schedules", "outer_alias": "dept", "inner_alias": "schd", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03357", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(salary, status, type, amount)\n sales(level, code, name, amount)\nTask: Select id from invoices where type exists in sales for the same type.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM sales AS sale\n WHERE sale.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "sales", "outer_alias": "inv", "inner_alias": "sale", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03358", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(level, code, date, status)\n accounts(type, salary, name, value)\nTask: Retrieve value from invoices that have at least one corresponding entry in accounts sharing the same type.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03359", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(name, type, amount, date)\n accounts(amount, id, date, salary)\nTask: Find amount from sales where salary exceeds the average salary from accounts for the same status.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE salary > (\n SELECT AVG(salary) FROM accounts AS acct\n WHERE acct.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "accounts", "outer_alias": "sale", "inner_alias": "acct", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03360", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(date, code, type, name)\n accounts(code, status, amount, salary)\nTask: Retrieve amount from invoices with salary above the MAX(amount) of accounts rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE salary > (\n SELECT MAX(amount) FROM accounts AS acct\n WHERE acct.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03361", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(type, level, amount, salary)\n tasks(id, name, level, salary)\nTask: Retrieve id from schedules with value above the MIN(amount) of tasks rows sharing the same type.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE value > (\n SELECT MIN(amount) FROM tasks AS tsk\n WHERE tsk.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "tasks", "outer_alias": "schd", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03362", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(salary, code, name, status)\n customers(date, code, value, id)\nTask: Retrieve value from items with amount above the MAX(amount) of customers rows sharing the same level.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE amount > (\n SELECT MAX(amount) FROM customers AS cust\n WHERE cust.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "customers", "outer_alias": "lne", "inner_alias": "cust", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03363", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(date, id, level, amount)\n managers(date, value, level, name)\nTask: Select name from shipments where status exists in managers for the same type.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "managers", "outer_alias": "shp", "inner_alias": "mgr", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03364", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(code, level, value, id)\n accounts(status, name, salary, code)\nTask: Select value from schedules where status exists in accounts for the same status.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE status IN (\n SELECT status FROM accounts AS acct\n WHERE acct.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "accounts", "outer_alias": "schd", "inner_alias": "acct", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03365", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(id, status, value, date)\n products(value, id, status, code)\nTask: Find salary from departments where amount exceeds the minimum salary from products for the same id.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE amount > (\n SELECT MIN(salary) FROM products AS prod\n WHERE prod.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "products", "outer_alias": "dept", "inner_alias": "prod", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03366", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(date, id, code, amount)\n products(salary, amount, value, name)\nTask: Find amount from sales where value exceeds the minimum amount from products for the same code.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE value > (\n SELECT MIN(amount) FROM products AS prod\n WHERE prod.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "products", "outer_alias": "sale", "inner_alias": "prod", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03367", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(date, amount, code, value)\n items(name, type, status, level)\nTask: Select amount from customers where id exists in items for the same level.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "items", "outer_alias": "cust", "inner_alias": "lne", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03368", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(status, amount, value, id)\n employees(type, status, date, name)\nTask: Find code from staff where amount exceeds the count of amount from employees for the same status.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE amount > (\n SELECT COUNT(amount) FROM employees AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03369", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(amount, status, id, type)\n categories(code, amount, date, id)\nTask: Find code from sales where a matching record exists in categories with the same id.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "categories", "outer_alias": "sale", "inner_alias": "catg", "proj_col": "code", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03370", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(date, amount, level, status)\n sales(salary, value, status, type)\nTask: Select salary from regions where id exists in sales for the same id.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE id IN (\n SELECT id FROM sales AS sale\n WHERE sale.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "sales", "outer_alias": "rgn", "inner_alias": "sale", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03371", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(type, salary, amount, name)\n sales(type, id, status, value)\nTask: Find code from requests where amount exceeds the minimum amount from sales for the same level.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE amount > (\n SELECT MIN(amount) FROM sales AS sale\n WHERE sale.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "sales", "outer_alias": "ordr", "inner_alias": "sale", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03372", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(code, level, date, status)\n categories(id, value, status, date)\nTask: Retrieve amount from staff that have at least one corresponding entry in categories sharing the same code.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "categories", "outer_alias": "empl", "inner_alias": "catg", "proj_col": "amount", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03373", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(salary, type, name, code)\n managers(name, id, code, salary)\nTask: Find value from invoices where salary exceeds the total salary from managers for the same status.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE salary > (\n SELECT SUM(salary) FROM managers AS mgr\n WHERE mgr.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "managers", "outer_alias": "inv", "inner_alias": "mgr", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03374", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(code, type, name, salary)\n products(name, type, code, date)\nTask: Find value from schedules where a matching record exists in products with the same code.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "products", "outer_alias": "schd", "inner_alias": "prod", "proj_col": "value", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03375", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(code, salary, type, status)\n requests(name, date, status, id)\nTask: Find value from departments where id appears in requests entries with matching code.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE id IN (\n SELECT id FROM requests AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "requests", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03376", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(code, type, salary, level)\n invoices(date, level, id, name)\nTask: Retrieve value from projects whose code is found in invoices rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE code IN (\n SELECT code FROM invoices AS inv\n WHERE inv.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "invoices", "outer_alias": "prj", "inner_alias": "inv", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03377", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(date, code, amount, value)\n employees(salary, value, type, amount)\nTask: Find code from regions where code appears in employees entries with matching id.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03378", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(name, type, level, id)\n employees(code, amount, level, type)\nTask: Retrieve salary from products with value above the AVG(amount) of employees rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE value > (\n SELECT AVG(amount) FROM employees AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "employees", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03379", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(amount, salary, date, id)\n requests(value, salary, status, amount)\nTask: Retrieve id from tasks that have at least one corresponding entry in requests sharing the same status.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "id", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03380", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(name, level, id, status)\n branches(code, amount, date, type)\nTask: Retrieve value from invoices with value above the MAX(value) of branches rows sharing the same status.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE value > (\n SELECT MAX(value) FROM branches AS brc\n WHERE brc.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "branches", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03381", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(type, name, salary, id)\n invoices(date, status, code, value)\nTask: Retrieve amount from sales with amount above the MIN(salary) of invoices rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE amount > (\n SELECT MIN(salary) FROM invoices AS inv\n WHERE inv.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "invoices", "outer_alias": "sale", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03382", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(date, amount, code, name)\n managers(level, name, amount, salary)\nTask: Find value from products where level appears in managers entries with matching level.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "managers", "outer_alias": "prod", "inner_alias": "mgr", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03383", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(level, type, value, amount)\n employees(name, salary, id, date)\nTask: Retrieve code from categories that have at least one corresponding entry in employees sharing the same id.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "employees", "outer_alias": "catg", "inner_alias": "emp", "proj_col": "code", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03384", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(date, type, amount, level)\n requests(status, type, level, salary)\nTask: Find name from staff where a matching record exists in requests with the same code.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "requests", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "name", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03385", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(level, code, id, value)\n requests(salary, amount, date, level)\nTask: Retrieve name from transactions whose status is found in requests rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "requests", "outer_alias": "txn", "inner_alias": "ordr", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03386", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(date, id, code, status)\n employees(type, status, value, code)\nTask: Find salary from requests where amount exceeds the count of value from employees for the same type.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE amount > (\n SELECT COUNT(value) FROM employees AS emp\n WHERE emp.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "employees", "outer_alias": "ordr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03387", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(value, name, code, status)\n employees(code, id, amount, type)\nTask: Find id from customers where a matching record exists in employees with the same id.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "id", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03388", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(level, amount, code, value)\n requests(salary, id, level, amount)\nTask: Find amount from transactions where value exceeds the maximum value from requests for the same code.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE value > (\n SELECT MAX(value) FROM requests AS ordr\n WHERE ordr.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "requests", "outer_alias": "txn", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03389", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(name, amount, salary, date)\n transactions(value, amount, date, level)\nTask: Retrieve amount from items that have at least one corresponding entry in transactions sharing the same status.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "transactions", "outer_alias": "lne", "inner_alias": "txn", "proj_col": "amount", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03390", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(level, status, amount, date)\n sales(salary, name, type, id)\nTask: Retrieve code from projects that have at least one corresponding entry in sales sharing the same code.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "sales", "outer_alias": "prj", "inner_alias": "sale", "proj_col": "code", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03391", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(value, salary, status, amount)\n branches(status, amount, type, code)\nTask: Select amount from projects where status exists in branches for the same id.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "branches", "outer_alias": "prj", "inner_alias": "brc", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03392", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(name, date, type, amount)\n accounts(level, date, type, value)\nTask: Select value from schedules where id exists in accounts for the same code.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE id IN (\n SELECT id FROM accounts AS acct\n WHERE acct.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "accounts", "outer_alias": "schd", "inner_alias": "acct", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03393", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(id, code, date, name)\n tasks(amount, name, code, date)\nTask: Retrieve salary from orders with value above the COUNT(salary) of tasks rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE value > (\n SELECT COUNT(salary) FROM tasks AS tsk\n WHERE tsk.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "tasks", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03394", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(date, amount, salary, type)\n staff(amount, type, salary, name)\nTask: Find code from shipments where salary exceeds the maximum value from staff for the same status.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE salary > (\n SELECT MAX(value) FROM staff AS empl\n WHERE empl.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "staff", "outer_alias": "shp", "inner_alias": "empl", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03395", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(code, level, type, value)\n accounts(status, date, value, level)\nTask: Retrieve salary from schedules whose type is found in accounts rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "accounts", "outer_alias": "schd", "inner_alias": "acct", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03396", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(level, salary, status, type)\n customers(id, value, amount, salary)\nTask: Select amount from categories where status exists in customers for the same status.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE status IN (\n SELECT status FROM customers AS cust\n WHERE cust.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "customers", "outer_alias": "catg", "inner_alias": "cust", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03397", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(name, salary, date, code)\n regions(value, code, amount, level)\nTask: Retrieve value from invoices whose type is found in regions rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM regions AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "regions", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03398", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(id, status, amount, salary)\n tasks(date, amount, code, id)\nTask: Retrieve id from categories with amount above the SUM(value) of tasks rows sharing the same level.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE amount > (\n SELECT SUM(value) FROM tasks AS tsk\n WHERE tsk.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "tasks", "outer_alias": "catg", "inner_alias": "tsk", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03399", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(code, status, date, value)\n categories(date, value, amount, status)\nTask: Retrieve id from departments that have at least one corresponding entry in categories sharing the same type.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "categories", "outer_alias": "dept", "inner_alias": "catg", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03400", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(salary, status, level, name)\n sales(date, code, status, type)\nTask: Find name from managers where type appears in sales entries with matching type.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM sales AS sale\n WHERE sale.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "sales", "outer_alias": "mgr", "inner_alias": "sale", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03401", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(type, date, level, salary)\n departments(level, type, date, id)\nTask: Retrieve amount from projects that have at least one corresponding entry in departments sharing the same type.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "departments", "outer_alias": "prj", "inner_alias": "dept", "proj_col": "amount", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03402", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(id, name, date, value)\n managers(name, salary, status, code)\nTask: Find value from requests where a matching record exists in managers with the same code.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "managers", "outer_alias": "ordr", "inner_alias": "mgr", "proj_col": "value", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03403", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(amount, status, date, code)\n tasks(level, value, code, status)\nTask: Find amount from transactions where value exceeds the total value from tasks for the same code.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE value > (\n SELECT SUM(value) FROM tasks AS tsk\n WHERE tsk.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "tasks", "outer_alias": "txn", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03404", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(id, type, value, status)\n projects(status, amount, id, date)\nTask: Find amount from products where a matching record exists in projects with the same level.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "projects", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03405", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(id, level, value, date)\n managers(status, value, date, code)\nTask: Select name from accounts where id exists in managers for the same level.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "managers", "outer_alias": "acct", "inner_alias": "mgr", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03406", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(type, date, code, id)\n orders(value, level, salary, id)\nTask: Retrieve code from managers that have at least one corresponding entry in orders sharing the same type.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "orders", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03407", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(type, date, salary, code)\n transactions(value, date, salary, type)\nTask: Find id from shipments where amount exceeds the maximum amount from transactions for the same type.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE amount > (\n SELECT MAX(amount) FROM transactions AS txn\n WHERE txn.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "transactions", "outer_alias": "shp", "inner_alias": "txn", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03408", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(status, code, type, amount)\n items(salary, value, status, date)\nTask: Select code from transactions where level exists in items for the same code.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM items AS lne\n WHERE lne.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "items", "outer_alias": "txn", "inner_alias": "lne", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03409", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(amount, code, level, salary)\n items(date, code, id, value)\nTask: Retrieve value from accounts with value above the AVG(amount) of items rows sharing the same type.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE value > (\n SELECT AVG(amount) FROM items AS lne\n WHERE lne.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "items", "outer_alias": "acct", "inner_alias": "lne", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03410", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(code, name, salary, amount)\n regions(id, value, status, amount)\nTask: Select name from departments where level exists in regions for the same id.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "regions", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03411", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(status, type, value, code)\n branches(status, code, type, level)\nTask: Retrieve salary from customers that have at least one corresponding entry in branches sharing the same code.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "branches", "outer_alias": "cust", "inner_alias": "brc", "proj_col": "salary", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03412", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(value, name, amount, code)\n regions(salary, code, type, status)\nTask: Retrieve amount from orders with salary above the SUM(amount) of regions rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE salary > (\n SELECT SUM(amount) FROM regions AS rgn\n WHERE rgn.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "regions", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03413", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(date, status, value, level)\n projects(code, salary, date, status)\nTask: Select amount from departments where level exists in projects for the same level.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "projects", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03414", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(salary, id, type, value)\n departments(id, type, amount, salary)\nTask: Find id from regions where a matching record exists in departments with the same code.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "departments", "outer_alias": "rgn", "inner_alias": "dept", "proj_col": "id", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03415", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(amount, date, code, status)\n categories(level, amount, value, type)\nTask: Retrieve id from accounts whose type is found in categories rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE type IN (\n SELECT type FROM categories AS catg\n WHERE catg.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "categories", "outer_alias": "acct", "inner_alias": "catg", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03416", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(code, status, value, type)\n products(status, id, salary, level)\nTask: Retrieve salary from tasks whose id is found in products rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "products", "outer_alias": "tsk", "inner_alias": "prod", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03417", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(salary, amount, level, code)\n sales(value, amount, id, salary)\nTask: Retrieve code from items with amount above the AVG(salary) of sales rows sharing the same type.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE amount > (\n SELECT AVG(salary) FROM sales AS sale\n WHERE sale.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "sales", "outer_alias": "lne", "inner_alias": "sale", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03418", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(level, date, name, status)\n invoices(salary, name, level, date)\nTask: Find salary from tasks where a matching record exists in invoices with the same code.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "invoices", "outer_alias": "tsk", "inner_alias": "inv", "proj_col": "salary", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03419", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(status, type, date, level)\n shipments(status, id, level, salary)\nTask: Retrieve salary from sales whose id is found in shipments rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE id IN (\n SELECT id FROM shipments AS shp\n WHERE shp.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "shipments", "outer_alias": "sale", "inner_alias": "shp", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03420", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(date, type, salary, level)\n sales(type, name, date, salary)\nTask: Find salary from items where a matching record exists in sales with the same type.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "sales", "outer_alias": "lne", "inner_alias": "sale", "proj_col": "salary", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03421", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(id, level, status, name)\n items(code, amount, salary, value)\nTask: Select code from projects where level exists in items for the same level.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE level IN (\n SELECT level FROM items AS lne\n WHERE lne.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "items", "outer_alias": "prj", "inner_alias": "lne", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03422", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(status, type, salary, value)\n products(date, amount, value, id)\nTask: Retrieve salary from orders that have at least one corresponding entry in products sharing the same level.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "products", "outer_alias": "ord", "inner_alias": "prod", "proj_col": "salary", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03423", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(value, date, amount, id)\n products(date, id, salary, code)\nTask: Retrieve id from employees with amount above the AVG(value) of products rows sharing the same level.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE amount > (\n SELECT AVG(value) FROM products AS prod\n WHERE prod.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03424", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(id, salary, value, amount)\n staff(amount, id, level, status)\nTask: Select name from orders where id exists in staff for the same code.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE id IN (\n SELECT id FROM staff AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "staff", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03425", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(value, type, id, status)\n employees(salary, type, date, id)\nTask: Retrieve amount from customers with salary above the SUM(value) of employees rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE salary > (\n SELECT SUM(value) FROM employees AS emp\n WHERE emp.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03426", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, name, salary, id)\n customers(status, amount, id, name)\nTask: Retrieve id from regions with value above the MAX(amount) of customers rows sharing the same status.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE value > (\n SELECT MAX(amount) FROM customers AS cust\n WHERE cust.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "customers", "outer_alias": "rgn", "inner_alias": "cust", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03427", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(id, date, value, level)\n employees(id, name, date, level)\nTask: Retrieve amount from requests whose id is found in employees rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "employees", "outer_alias": "ordr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03428", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(value, level, id, name)\n employees(value, status, amount, level)\nTask: Retrieve id from transactions with amount above the COUNT(value) of employees rows sharing the same level.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE amount > (\n SELECT COUNT(value) FROM employees AS emp\n WHERE emp.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03429", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(code, id, date, name)\n managers(amount, level, name, date)\nTask: Retrieve name from regions with value above the AVG(salary) of managers rows sharing the same type.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE value > (\n SELECT AVG(salary) FROM managers AS mgr\n WHERE mgr.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "managers", "outer_alias": "rgn", "inner_alias": "mgr", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03430", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(type, level, status, date)\n employees(value, date, id, level)\nTask: Find code from staff where value exceeds the total amount from employees for the same level.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE value > (\n SELECT SUM(amount) FROM employees AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03431", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(amount, type, date, code)\n tasks(status, value, salary, level)\nTask: Find amount from branches where a matching record exists in tasks with the same level.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "amount", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03432", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(amount, salary, level, date)\n categories(amount, id, salary, code)\nTask: Find value from items where amount exceeds the average salary from categories for the same status.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE amount > (\n SELECT AVG(salary) FROM categories AS catg\n WHERE catg.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03433", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(id, salary, type, status)\n branches(name, status, id, date)\nTask: Retrieve name from accounts that have at least one corresponding entry in branches sharing the same status.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "branches", "outer_alias": "acct", "inner_alias": "brc", "proj_col": "name", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03434", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(amount, name, date, status)\n tasks(amount, name, code, value)\nTask: Retrieve id from branches that have at least one corresponding entry in tasks sharing the same type.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "id", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03435", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(salary, date, status, name)\n products(code, salary, level, name)\nTask: Retrieve code from staff whose id is found in products rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "products", "outer_alias": "empl", "inner_alias": "prod", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03436", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(level, value, code, date)\n items(date, code, name, id)\nTask: Find id from requests where value exceeds the count of amount from items for the same level.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE value > (\n SELECT COUNT(amount) FROM items AS lne\n WHERE lne.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03437", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(date, code, id, level)\n requests(code, value, id, amount)\nTask: Retrieve code from projects whose status is found in requests rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03438", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(amount, status, date, name)\n items(date, code, amount, status)\nTask: Find id from employees where id appears in items entries with matching code.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "items", "outer_alias": "emp", "inner_alias": "lne", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03439", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(type, amount, salary, status)\n orders(status, salary, id, type)\nTask: Retrieve name from departments that have at least one corresponding entry in orders sharing the same level.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "orders", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03440", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(code, value, amount, date)\n requests(id, status, name, code)\nTask: Retrieve amount from staff with amount above the SUM(amount) of requests rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE amount > (\n SELECT SUM(amount) FROM requests AS ordr\n WHERE ordr.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "requests", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03441", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(salary, id, level, name)\n staff(amount, name, type, value)\nTask: Retrieve code from categories with salary above the SUM(amount) of staff rows sharing the same level.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE salary > (\n SELECT SUM(amount) FROM staff AS empl\n WHERE empl.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "staff", "outer_alias": "catg", "inner_alias": "empl", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03442", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(type, id, name, salary)\n staff(code, level, status, type)\nTask: Retrieve code from requests with salary above the MAX(amount) of staff rows sharing the same code.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE salary > (\n SELECT MAX(amount) FROM staff AS empl\n WHERE empl.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "staff", "outer_alias": "ordr", "inner_alias": "empl", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03443", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(salary, value, name, date)\n employees(salary, status, level, name)\nTask: Find id from sales where a matching record exists in employees with the same status.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "employees", "outer_alias": "sale", "inner_alias": "emp", "proj_col": "id", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03444", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(level, id, type, amount)\n shipments(code, type, value, id)\nTask: Find id from managers where status appears in shipments entries with matching type.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE status IN (\n SELECT status FROM shipments AS shp\n WHERE shp.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "shipments", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03445", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(type, date, id, value)\n sales(id, amount, name, date)\nTask: Retrieve id from projects with salary above the COUNT(amount) of sales rows sharing the same level.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE salary > (\n SELECT COUNT(amount) FROM sales AS sale\n WHERE sale.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "sales", "outer_alias": "prj", "inner_alias": "sale", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03446", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(level, amount, salary, name)\n regions(value, type, amount, status)\nTask: Retrieve code from schedules with salary above the COUNT(amount) of regions rows sharing the same level.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE salary > (\n SELECT COUNT(amount) FROM regions AS rgn\n WHERE rgn.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03447", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(salary, date, type, name)\n staff(salary, amount, value, status)\nTask: Retrieve amount from products that have at least one corresponding entry in staff sharing the same level.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03448", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(status, code, name, amount)\n requests(level, code, amount, id)\nTask: Find value from sales where a matching record exists in requests with the same status.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "requests", "outer_alias": "sale", "inner_alias": "ordr", "proj_col": "value", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03449", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(date, salary, id, status)\n products(value, status, amount, level)\nTask: Find name from tasks where level appears in products entries with matching id.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "products", "outer_alias": "tsk", "inner_alias": "prod", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03450", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(status, id, amount, level)\n departments(amount, level, status, salary)\nTask: Select amount from products where status exists in departments for the same code.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE status IN (\n SELECT status FROM departments AS dept\n WHERE dept.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "departments", "outer_alias": "prod", "inner_alias": "dept", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03451", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(value, status, date, type)\n invoices(type, code, name, level)\nTask: Retrieve amount from requests with amount above the SUM(salary) of invoices rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE amount > (\n SELECT SUM(salary) FROM invoices AS inv\n WHERE inv.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "invoices", "outer_alias": "ordr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03452", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(code, status, date, level)\n products(level, code, amount, name)\nTask: Find value from branches where a matching record exists in products with the same level.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "products", "outer_alias": "brc", "inner_alias": "prod", "proj_col": "value", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03453", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(id, name, value, code)\n orders(salary, name, status, value)\nTask: Find id from staff where a matching record exists in orders with the same status.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "orders", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03454", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(value, date, level, amount)\n employees(level, amount, salary, date)\nTask: Retrieve name from projects with amount above the MIN(salary) of employees rows sharing the same id.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE amount > (\n SELECT MIN(salary) FROM employees AS emp\n WHERE emp.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "employees", "outer_alias": "prj", "inner_alias": "emp", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03455", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(date, id, status, salary)\n staff(amount, type, level, value)\nTask: Find code from orders where status appears in staff entries with matching code.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "staff", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03456", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(code, salary, level, amount)\n employees(level, salary, status, code)\nTask: Find amount from items where salary exceeds the count of value from employees for the same status.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE salary > (\n SELECT COUNT(value) FROM employees AS emp\n WHERE emp.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03457", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(type, value, date, amount)\n managers(level, salary, value, id)\nTask: Retrieve name from customers that have at least one corresponding entry in managers sharing the same status.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "managers", "outer_alias": "cust", "inner_alias": "mgr", "proj_col": "name", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03458", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(status, type, id, name)\n categories(date, type, code, value)\nTask: Retrieve salary from requests with value above the COUNT(amount) of categories rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE value > (\n SELECT COUNT(amount) FROM categories AS catg\n WHERE catg.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "categories", "outer_alias": "ordr", "inner_alias": "catg", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03459", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(status, type, date, id)\n transactions(level, code, value, name)\nTask: Find id from orders where value exceeds the count of amount from transactions for the same code.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE value > (\n SELECT COUNT(amount) FROM transactions AS txn\n WHERE txn.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03460", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(status, value, amount, level)\n categories(level, code, type, status)\nTask: Retrieve code from orders with value above the MIN(value) of categories rows sharing the same level.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE value > (\n SELECT MIN(value) FROM categories AS catg\n WHERE catg.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "categories", "outer_alias": "ord", "inner_alias": "catg", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03461", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(value, code, level, date)\n regions(level, status, code, name)\nTask: Retrieve salary from branches with amount above the MAX(value) of regions rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE amount > (\n SELECT MAX(value) FROM regions AS rgn\n WHERE rgn.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "regions", "outer_alias": "brc", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03462", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(amount, date, level, name)\n regions(value, level, id, code)\nTask: Retrieve id from orders whose type is found in regions rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE type IN (\n SELECT type FROM regions AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "regions", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03463", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(date, status, salary, code)\n employees(id, salary, name, code)\nTask: Retrieve name from schedules that have at least one corresponding entry in employees sharing the same code.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "name", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03464", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(name, value, code, salary)\n tasks(level, salary, type, id)\nTask: Retrieve name from branches whose id is found in tasks rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE id IN (\n SELECT id FROM tasks AS tsk\n WHERE tsk.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03465", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(value, amount, salary, level)\n orders(value, level, salary, date)\nTask: Find code from categories where salary exceeds the total salary from orders for the same id.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE salary > (\n SELECT SUM(salary) FROM orders AS ord\n WHERE ord.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "orders", "outer_alias": "catg", "inner_alias": "ord", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03466", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(level, id, name, type)\n invoices(amount, type, name, code)\nTask: Find name from customers where a matching record exists in invoices with the same type.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "name", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03467", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(id, type, status, value)\n branches(salary, id, name, value)\nTask: Find value from accounts where a matching record exists in branches with the same status.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "branches", "outer_alias": "acct", "inner_alias": "brc", "proj_col": "value", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03468", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(date, id, salary, name)\n items(name, status, value, level)\nTask: Retrieve name from categories whose code is found in items rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE code IN (\n SELECT code FROM items AS lne\n WHERE lne.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03469", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(type, salary, name, value)\n employees(status, code, amount, date)\nTask: Retrieve amount from sales with amount above the MIN(amount) of employees rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE amount > (\n SELECT MIN(amount) FROM employees AS emp\n WHERE emp.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "employees", "outer_alias": "sale", "inner_alias": "emp", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03470", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(id, type, salary, date)\n managers(amount, value, status, salary)\nTask: Retrieve code from schedules whose code is found in managers rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM managers AS mgr\n WHERE mgr.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03471", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(salary, name, status, value)\n requests(date, level, status, salary)\nTask: Select amount from sales where id exists in requests for the same status.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE id IN (\n SELECT id FROM requests AS ordr\n WHERE ordr.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "requests", "outer_alias": "sale", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03472", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(value, date, salary, amount)\n sales(value, date, status, amount)\nTask: Find name from schedules where status appears in sales entries with matching type.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "sales", "outer_alias": "schd", "inner_alias": "sale", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03473", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(id, amount, type, date)\n branches(code, date, type, status)\nTask: Retrieve value from products with salary above the MAX(amount) of branches rows sharing the same status.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM branches AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "branches", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03474", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, amount, name, type)\n requests(value, code, type, date)\nTask: Select id from shipments where id exists in requests for the same level.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE id IN (\n SELECT id FROM requests AS ordr\n WHERE ordr.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "requests", "outer_alias": "shp", "inner_alias": "ordr", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03475", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(salary, name, value, type)\n projects(salary, name, level, amount)\nTask: Select name from transactions where code exists in projects for the same status.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03476", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(type, salary, date, name)\n invoices(type, salary, code, amount)\nTask: Find salary from branches where salary exceeds the maximum amount from invoices for the same type.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE salary > (\n SELECT MAX(amount) FROM invoices AS inv\n WHERE inv.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "invoices", "outer_alias": "brc", "inner_alias": "inv", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03477", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(type, value, id, code)\n accounts(type, value, code, amount)\nTask: Find amount from invoices where code appears in accounts entries with matching code.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03478", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(id, level, amount, type)\n tasks(value, id, salary, status)\nTask: Find code from accounts where id appears in tasks entries with matching status.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM tasks AS tsk\n WHERE tsk.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "tasks", "outer_alias": "acct", "inner_alias": "tsk", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03479", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(value, type, id, code)\n departments(id, amount, code, status)\nTask: Find value from requests where level appears in departments entries with matching status.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "departments", "outer_alias": "ordr", "inner_alias": "dept", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03480", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(name, level, amount, code)\n tasks(status, code, value, date)\nTask: Retrieve value from schedules with amount above the COUNT(salary) of tasks rows sharing the same id.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE amount > (\n SELECT COUNT(salary) FROM tasks AS tsk\n WHERE tsk.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "tasks", "outer_alias": "schd", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03481", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(level, code, amount, date)\n products(amount, id, date, salary)\nTask: Find code from regions where type appears in products entries with matching status.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM products AS prod\n WHERE prod.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03482", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(level, type, name, status)\n employees(status, value, level, amount)\nTask: Select value from schedules where status exists in employees for the same id.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03483", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(salary, status, name, type)\n regions(amount, date, status, code)\nTask: Retrieve amount from projects whose status is found in regions rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE status IN (\n SELECT status FROM regions AS rgn\n WHERE rgn.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "regions", "outer_alias": "prj", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03484", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(date, type, salary, code)\n managers(level, name, status, value)\nTask: Select name from accounts where id exists in managers for the same level.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "managers", "outer_alias": "acct", "inner_alias": "mgr", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03485", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(type, date, id, code)\n managers(amount, value, name, type)\nTask: Retrieve name from shipments whose level is found in managers rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "managers", "outer_alias": "shp", "inner_alias": "mgr", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03486", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(status, level, salary, id)\n orders(amount, code, status, type)\nTask: Find amount from shipments where a matching record exists in orders with the same level.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "orders", "outer_alias": "shp", "inner_alias": "ord", "proj_col": "amount", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03487", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(status, salary, code, date)\n employees(type, level, code, id)\nTask: Find amount from categories where a matching record exists in employees with the same id.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "employees", "outer_alias": "catg", "inner_alias": "emp", "proj_col": "amount", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03488", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(level, date, status, salary)\n requests(name, amount, status, date)\nTask: Select code from accounts where level exists in requests for the same status.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM requests AS ordr\n WHERE ordr.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "requests", "outer_alias": "acct", "inner_alias": "ordr", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03489", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(amount, value, salary, name)\n departments(status, name, amount, id)\nTask: Retrieve value from transactions whose code is found in departments rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "departments", "outer_alias": "txn", "inner_alias": "dept", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03490", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(date, level, name, code)\n schedules(amount, name, salary, id)\nTask: Find code from projects where a matching record exists in schedules with the same type.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "schedules", "outer_alias": "prj", "inner_alias": "schd", "proj_col": "code", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03491", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(name, code, id, date)\n projects(date, name, id, amount)\nTask: Find value from invoices where a matching record exists in projects with the same level.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "projects", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "value", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03492", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(level, name, id, salary)\n invoices(name, code, status, value)\nTask: Find salary from projects where level appears in invoices entries with matching id.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE level IN (\n SELECT level FROM invoices AS inv\n WHERE inv.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "invoices", "outer_alias": "prj", "inner_alias": "inv", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03493", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(date, value, name, level)\n items(name, status, amount, date)\nTask: Find salary from orders where a matching record exists in items with the same type.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03494", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(name, date, type, value)\n items(salary, date, type, amount)\nTask: Find salary from projects where a matching record exists in items with the same id.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "items", "outer_alias": "prj", "inner_alias": "lne", "proj_col": "salary", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03495", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(level, date, status, value)\n managers(date, code, salary, id)\nTask: Find name from accounts where a matching record exists in managers with the same level.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "managers", "outer_alias": "acct", "inner_alias": "mgr", "proj_col": "name", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03496", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(code, name, salary, amount)\n customers(type, id, value, name)\nTask: Find amount from requests where code appears in customers entries with matching id.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "customers", "outer_alias": "ordr", "inner_alias": "cust", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03497", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(amount, date, type, status)\n invoices(status, id, value, amount)\nTask: Retrieve value from items whose level is found in invoices rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE level IN (\n SELECT level FROM invoices AS inv\n WHERE inv.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "invoices", "outer_alias": "lne", "inner_alias": "inv", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03498", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(type, value, status, amount)\n employees(amount, level, id, type)\nTask: Find code from categories where a matching record exists in employees with the same status.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "employees", "outer_alias": "catg", "inner_alias": "emp", "proj_col": "code", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03499", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(type, id, level, salary)\n customers(status, salary, id, amount)\nTask: Retrieve value from transactions with amount above the COUNT(value) of customers rows sharing the same type.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE amount > (\n SELECT COUNT(value) FROM customers AS cust\n WHERE cust.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "customers", "outer_alias": "txn", "inner_alias": "cust", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03500", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(date, code, name, amount)\n regions(date, salary, level, value)\nTask: Find id from employees where a matching record exists in regions with the same id.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "regions", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03501", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(salary, level, status, date)\n employees(code, amount, value, status)\nTask: Retrieve code from staff that have at least one corresponding entry in employees sharing the same level.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03502", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(type, id, name, date)\n branches(salary, amount, name, id)\nTask: Find value from shipments where salary exceeds the count of value from branches for the same type.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE salary > (\n SELECT COUNT(value) FROM branches AS brc\n WHERE brc.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "branches", "outer_alias": "shp", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03503", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(type, date, name, value)\n regions(salary, value, amount, code)\nTask: Find amount from requests where salary exceeds the maximum salary from regions for the same id.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE salary > (\n SELECT MAX(salary) FROM regions AS rgn\n WHERE rgn.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "regions", "outer_alias": "ordr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03504", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(salary, type, amount, date)\n products(date, status, amount, salary)\nTask: Retrieve code from accounts whose level is found in products rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03505", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(id, type, salary, code)\n items(type, value, salary, id)\nTask: Retrieve salary from tasks with amount above the MIN(salary) of items rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE amount > (\n SELECT MIN(salary) FROM items AS lne\n WHERE lne.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "items", "outer_alias": "tsk", "inner_alias": "lne", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03506", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(date, type, amount, level)\n products(date, code, value, salary)\nTask: Retrieve amount from branches with amount above the COUNT(value) of products rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE amount > (\n SELECT COUNT(value) FROM products AS prod\n WHERE prod.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "products", "outer_alias": "brc", "inner_alias": "prod", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03507", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(date, level, value, status)\n projects(salary, value, code, status)\nTask: Select id from transactions where code exists in projects for the same status.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03508", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(code, date, salary, name)\n regions(amount, code, salary, level)\nTask: Retrieve name from branches whose status is found in regions rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE status IN (\n SELECT status FROM regions AS rgn\n WHERE rgn.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "regions", "outer_alias": "brc", "inner_alias": "rgn", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03509", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(value, code, level, name)\n accounts(date, code, id, status)\nTask: Find name from products where a matching record exists in accounts with the same id.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "accounts", "outer_alias": "prod", "inner_alias": "acct", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03510", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(level, date, id, amount)\n products(name, date, value, level)\nTask: Find salary from departments where a matching record exists in products with the same type.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "products", "outer_alias": "dept", "inner_alias": "prod", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03511", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(id, date, type, level)\n invoices(status, value, type, date)\nTask: Retrieve code from customers with value above the SUM(value) of invoices rows sharing the same level.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE value > (\n SELECT SUM(value) FROM invoices AS inv\n WHERE inv.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03512", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(date, amount, code, status)\n sales(date, level, code, amount)\nTask: Find value from transactions where a matching record exists in sales with the same id.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "sales", "outer_alias": "txn", "inner_alias": "sale", "proj_col": "value", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03513", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(salary, status, name, id)\n employees(code, id, type, date)\nTask: Retrieve value from branches that have at least one corresponding entry in employees sharing the same level.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "employees", "outer_alias": "brc", "inner_alias": "emp", "proj_col": "value", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03514", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(type, value, date, id)\n customers(id, type, level, amount)\nTask: Find amount from requests where value exceeds the average salary from customers for the same id.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE value > (\n SELECT AVG(salary) FROM customers AS cust\n WHERE cust.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "customers", "outer_alias": "ordr", "inner_alias": "cust", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03515", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(name, salary, level, date)\n shipments(value, amount, status, code)\nTask: Find code from items where a matching record exists in shipments with the same id.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "shipments", "outer_alias": "lne", "inner_alias": "shp", "proj_col": "code", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03516", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(type, id, status, date)\n managers(salary, amount, code, date)\nTask: Retrieve name from orders that have at least one corresponding entry in managers sharing the same code.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "managers", "outer_alias": "ord", "inner_alias": "mgr", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03517", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(salary, code, date, id)\n shipments(value, id, type, name)\nTask: Retrieve id from transactions whose id is found in shipments rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM shipments AS shp\n WHERE shp.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "shipments", "outer_alias": "txn", "inner_alias": "shp", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03518", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(id, type, salary, level)\n shipments(amount, level, code, salary)\nTask: Retrieve id from invoices whose type is found in shipments rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM shipments AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03519", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(type, salary, id, amount)\n requests(salary, amount, level, code)\nTask: Retrieve amount from employees with value above the COUNT(amount) of requests rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE value > (\n SELECT COUNT(amount) FROM requests AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "requests", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03520", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(type, code, amount, value)\n orders(salary, code, name, date)\nTask: Find value from managers where a matching record exists in orders with the same type.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "orders", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "value", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03521", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(id, type, status, date)\n products(value, salary, status, id)\nTask: Retrieve value from projects with salary above the MAX(salary) of products rows sharing the same code.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE salary > (\n SELECT MAX(salary) FROM products AS prod\n WHERE prod.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "products", "outer_alias": "prj", "inner_alias": "prod", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03522", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(name, id, status, amount)\n projects(salary, id, type, date)\nTask: Retrieve salary from accounts whose type is found in projects rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE type IN (\n SELECT type FROM projects AS prj\n WHERE prj.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "projects", "outer_alias": "acct", "inner_alias": "prj", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03523", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(salary, type, status, level)\n items(id, date, salary, type)\nTask: Select name from orders where level exists in items for the same level.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE level IN (\n SELECT level FROM items AS lne\n WHERE lne.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03524", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(amount, date, type, salary)\n managers(date, value, amount, type)\nTask: Find name from categories where a matching record exists in managers with the same code.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "managers", "outer_alias": "catg", "inner_alias": "mgr", "proj_col": "name", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03525", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(date, name, code, status)\n tasks(date, status, salary, code)\nTask: Find value from branches where a matching record exists in tasks with the same level.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "value", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03526", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(salary, code, name, amount)\n managers(status, amount, name, level)\nTask: Find amount from invoices where salary exceeds the minimum salary from managers for the same type.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM managers AS mgr\n WHERE mgr.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "managers", "outer_alias": "inv", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03527", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(type, value, salary, name)\n orders(status, level, code, amount)\nTask: Find code from shipments where salary exceeds the maximum amount from orders for the same level.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE salary > (\n SELECT MAX(amount) FROM orders AS ord\n WHERE ord.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "orders", "outer_alias": "shp", "inner_alias": "ord", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03528", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(type, amount, value, date)\n requests(name, date, type, salary)\nTask: Retrieve salary from orders with salary above the COUNT(value) of requests rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE salary > (\n SELECT COUNT(value) FROM requests AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "requests", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03529", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(amount, id, date, status)\n projects(type, name, amount, status)\nTask: Find salary from employees where a matching record exists in projects with the same id.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "projects", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03530", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(status, value, level, code)\n orders(level, date, id, amount)\nTask: Find id from branches where salary exceeds the average salary from orders for the same code.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE salary > (\n SELECT AVG(salary) FROM orders AS ord\n WHERE ord.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "orders", "outer_alias": "brc", "inner_alias": "ord", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03531", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(date, id, status, salary)\n transactions(code, id, amount, level)\nTask: Find amount from managers where level appears in transactions entries with matching status.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "transactions", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03532", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(value, salary, date, level)\n tasks(value, id, code, type)\nTask: Find code from staff where amount exceeds the minimum amount from tasks for the same type.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE amount > (\n SELECT MIN(amount) FROM tasks AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "tasks", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03533", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(type, name, level, amount)\n orders(code, name, status, type)\nTask: Retrieve id from transactions with amount above the MAX(amount) of orders rows sharing the same level.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE amount > (\n SELECT MAX(amount) FROM orders AS ord\n WHERE ord.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "orders", "outer_alias": "txn", "inner_alias": "ord", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03534", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(level, salary, type, amount)\n requests(salary, value, level, status)\nTask: Find name from categories where type appears in requests entries with matching id.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "requests", "outer_alias": "catg", "inner_alias": "ordr", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03535", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(code, type, value, salary)\n employees(code, amount, status, name)\nTask: Retrieve value from staff that have at least one corresponding entry in employees sharing the same code.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03536", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(value, amount, type, level)\n schedules(value, type, status, level)\nTask: Select value from categories where level exists in schedules for the same level.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE level IN (\n SELECT level FROM schedules AS schd\n WHERE schd.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "schedules", "outer_alias": "catg", "inner_alias": "schd", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03537", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(type, salary, status, name)\n products(type, id, name, code)\nTask: Select id from accounts where code exists in products for the same type.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE code IN (\n SELECT code FROM products AS prod\n WHERE prod.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03538", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(name, amount, salary, date)\n shipments(name, id, type, date)\nTask: Find amount from orders where amount exceeds the average salary from shipments for the same id.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE amount > (\n SELECT AVG(salary) FROM shipments AS shp\n WHERE shp.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "shipments", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03539", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(code, amount, value, id)\n shipments(code, salary, status, value)\nTask: Retrieve value from departments that have at least one corresponding entry in shipments sharing the same id.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "shipments", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03540", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(name, status, salary, value)\n orders(id, salary, level, value)\nTask: Retrieve amount from categories with value above the AVG(value) of orders rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE value > (\n SELECT AVG(value) FROM orders AS ord\n WHERE ord.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "orders", "outer_alias": "catg", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03541", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(level, status, salary, id)\n departments(code, type, salary, level)\nTask: Retrieve salary from managers with amount above the AVG(amount) of departments rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM departments AS dept\n WHERE dept.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "departments", "outer_alias": "mgr", "inner_alias": "dept", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03542", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(level, amount, status, id)\n departments(status, name, amount, date)\nTask: Retrieve value from sales with amount above the MIN(value) of departments rows sharing the same status.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE amount > (\n SELECT MIN(value) FROM departments AS dept\n WHERE dept.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "departments", "outer_alias": "sale", "inner_alias": "dept", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03543", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(salary, code, id, date)\n transactions(type, level, value, name)\nTask: Find id from orders where a matching record exists in transactions with the same type.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03544", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(amount, level, code, value)\n managers(name, level, salary, amount)\nTask: Find id from branches where a matching record exists in managers with the same level.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "id", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03545", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(date, salary, value, code)\n tasks(amount, name, level, salary)\nTask: Retrieve value from products that have at least one corresponding entry in tasks sharing the same id.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "tasks", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03546", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(amount, level, type, status)\n sales(id, name, status, date)\nTask: Retrieve value from customers with amount above the MIN(value) of sales rows sharing the same type.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE amount > (\n SELECT MIN(value) FROM sales AS sale\n WHERE sale.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "sales", "outer_alias": "cust", "inner_alias": "sale", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03547", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(status, level, date, code)\n orders(salary, name, value, id)\nTask: Select salary from regions where level exists in orders for the same id.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "orders", "outer_alias": "rgn", "inner_alias": "ord", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03548", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(code, salary, value, type)\n sales(status, id, value, salary)\nTask: Retrieve id from invoices whose type is found in sales rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM sales AS sale\n WHERE sale.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "sales", "outer_alias": "inv", "inner_alias": "sale", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03549", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(salary, amount, value, code)\n accounts(status, value, type, code)\nTask: Find code from sales where a matching record exists in accounts with the same status.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "accounts", "outer_alias": "sale", "inner_alias": "acct", "proj_col": "code", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03550", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(code, amount, status, salary)\n staff(date, status, code, level)\nTask: Retrieve code from items that have at least one corresponding entry in staff sharing the same code.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "staff", "outer_alias": "lne", "inner_alias": "empl", "proj_col": "code", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03551", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(id, status, date, code)\n customers(code, name, status, id)\nTask: Find name from orders where type appears in customers entries with matching id.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "customers", "outer_alias": "ord", "inner_alias": "cust", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03552", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(name, id, level, salary)\n categories(level, salary, name, amount)\nTask: Retrieve code from shipments with amount above the AVG(salary) of categories rows sharing the same status.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE amount > (\n SELECT AVG(salary) FROM categories AS catg\n WHERE catg.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "categories", "outer_alias": "shp", "inner_alias": "catg", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03553", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(id, name, status, amount)\n sales(id, value, level, code)\nTask: Select id from branches where id exists in sales for the same type.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE id IN (\n SELECT id FROM sales AS sale\n WHERE sale.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "sales", "outer_alias": "brc", "inner_alias": "sale", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03554", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(type, salary, status, date)\n staff(type, status, name, amount)\nTask: Retrieve name from managers that have at least one corresponding entry in staff sharing the same status.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "staff", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03555", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(id, code, level, status)\n shipments(salary, amount, level, value)\nTask: Find value from employees where a matching record exists in shipments with the same type.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "shipments", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03556", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(salary, amount, date, level)\n schedules(name, value, type, level)\nTask: Select salary from sales where type exists in schedules for the same id.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "schedules", "outer_alias": "sale", "inner_alias": "schd", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03557", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(id, code, type, salary)\n schedules(date, salary, id, level)\nTask: Retrieve value from categories that have at least one corresponding entry in schedules sharing the same code.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "schedules", "outer_alias": "catg", "inner_alias": "schd", "proj_col": "value", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03558", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(status, name, type, level)\n orders(date, value, type, salary)\nTask: Find name from branches where salary exceeds the count of salary from orders for the same code.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE salary > (\n SELECT COUNT(salary) FROM orders AS ord\n WHERE ord.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "orders", "outer_alias": "brc", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03559", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(amount, level, code, salary)\n products(status, date, id, value)\nTask: Select code from projects where level exists in products for the same type.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "products", "outer_alias": "prj", "inner_alias": "prod", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03560", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(status, code, id, level)\n products(date, type, name, amount)\nTask: Retrieve id from managers with salary above the COUNT(amount) of products rows sharing the same code.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE salary > (\n SELECT COUNT(amount) FROM products AS prod\n WHERE prod.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03561", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(status, code, id, amount)\n shipments(name, level, salary, code)\nTask: Find name from departments where a matching record exists in shipments with the same code.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "shipments", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "name", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03562", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(name, amount, id, value)\n sales(name, value, code, amount)\nTask: Find name from customers where a matching record exists in sales with the same level.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "sales", "outer_alias": "cust", "inner_alias": "sale", "proj_col": "name", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03563", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(type, amount, salary, value)\n shipments(salary, status, id, date)\nTask: Retrieve value from customers with amount above the AVG(amount) of shipments rows sharing the same level.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE amount > (\n SELECT AVG(amount) FROM shipments AS shp\n WHERE shp.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "shipments", "outer_alias": "cust", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03564", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(code, amount, id, date)\n staff(amount, code, type, value)\nTask: Find id from accounts where amount exceeds the average amount from staff for the same status.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE amount > (\n SELECT AVG(amount) FROM staff AS empl\n WHERE empl.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03565", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(date, type, salary, code)\n projects(code, level, date, value)\nTask: Retrieve name from accounts whose level is found in projects rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "projects", "outer_alias": "acct", "inner_alias": "prj", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03566", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(value, salary, code, date)\n requests(id, status, type, amount)\nTask: Retrieve code from departments with amount above the SUM(salary) of requests rows sharing the same code.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE amount > (\n SELECT SUM(salary) FROM requests AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "requests", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03567", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(type, status, code, salary)\n categories(id, code, level, amount)\nTask: Find value from employees where code appears in categories entries with matching level.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE code IN (\n SELECT code FROM categories AS catg\n WHERE catg.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "categories", "outer_alias": "emp", "inner_alias": "catg", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03568", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(id, level, value, code)\n sales(value, type, date, status)\nTask: Find salary from schedules where value exceeds the total amount from sales for the same code.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE value > (\n SELECT SUM(amount) FROM sales AS sale\n WHERE sale.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "sales", "outer_alias": "schd", "inner_alias": "sale", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03569", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(code, status, amount, level)\n transactions(type, name, date, code)\nTask: Find code from items where a matching record exists in transactions with the same level.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "transactions", "outer_alias": "lne", "inner_alias": "txn", "proj_col": "code", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03570", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(value, amount, status, code)\n invoices(code, amount, salary, date)\nTask: Retrieve value from branches that have at least one corresponding entry in invoices sharing the same id.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "invoices", "outer_alias": "brc", "inner_alias": "inv", "proj_col": "value", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03571", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(value, code, status, level)\n employees(level, status, date, value)\nTask: Find code from branches where a matching record exists in employees with the same status.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "employees", "outer_alias": "brc", "inner_alias": "emp", "proj_col": "code", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03572", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(name, value, type, amount)\n items(status, amount, code, level)\nTask: Find value from managers where a matching record exists in items with the same id.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "items", "outer_alias": "mgr", "inner_alias": "lne", "proj_col": "value", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03573", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(type, amount, id, name)\n departments(level, salary, amount, type)\nTask: Select id from orders where level exists in departments for the same code.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "departments", "outer_alias": "ord", "inner_alias": "dept", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03574", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(name, amount, status, salary)\n tasks(type, code, salary, name)\nTask: Find name from schedules where type appears in tasks entries with matching status.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "tasks", "outer_alias": "schd", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03575", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(id, code, name, salary)\n employees(code, amount, value, date)\nTask: Select value from projects where status exists in employees for the same code.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "employees", "outer_alias": "prj", "inner_alias": "emp", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03576", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(date, salary, level, code)\n sales(id, type, level, date)\nTask: Retrieve code from regions whose id is found in sales rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE id IN (\n SELECT id FROM sales AS sale\n WHERE sale.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "sales", "outer_alias": "rgn", "inner_alias": "sale", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03577", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(value, name, code, amount)\n managers(value, salary, name, code)\nTask: Retrieve salary from categories that have at least one corresponding entry in managers sharing the same id.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "managers", "outer_alias": "catg", "inner_alias": "mgr", "proj_col": "salary", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03578", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(code, status, date, value)\n managers(type, id, status, salary)\nTask: Retrieve salary from items with salary above the AVG(value) of managers rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE salary > (\n SELECT AVG(value) FROM managers AS mgr\n WHERE mgr.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "managers", "outer_alias": "lne", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03579", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(type, date, status, amount)\n departments(name, amount, date, id)\nTask: Find amount from schedules where a matching record exists in departments with the same type.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "departments", "outer_alias": "schd", "inner_alias": "dept", "proj_col": "amount", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03580", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(status, code, level, salary)\n shipments(type, amount, value, date)\nTask: Retrieve salary from regions with value above the MIN(amount) of shipments rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE value > (\n SELECT MIN(amount) FROM shipments AS shp\n WHERE shp.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "shipments", "outer_alias": "rgn", "inner_alias": "shp", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03581", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(amount, value, code, type)\n transactions(salary, level, value, id)\nTask: Retrieve id from shipments that have at least one corresponding entry in transactions sharing the same type.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "transactions", "outer_alias": "shp", "inner_alias": "txn", "proj_col": "id", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03582", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(amount, level, name, date)\n categories(status, value, type, name)\nTask: Retrieve value from employees with value above the MIN(salary) of categories rows sharing the same id.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE value > (\n SELECT MIN(salary) FROM categories AS catg\n WHERE catg.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "categories", "outer_alias": "emp", "inner_alias": "catg", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03583", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(id, level, salary, code)\n shipments(code, name, level, id)\nTask: Find salary from staff where a matching record exists in shipments with the same level.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03584", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(value, type, name, date)\n requests(id, level, date, salary)\nTask: Retrieve code from projects whose code is found in requests rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03585", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(type, code, name, level)\n staff(code, type, id, value)\nTask: Find amount from projects where code appears in staff entries with matching code.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE code IN (\n SELECT code FROM staff AS empl\n WHERE empl.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "staff", "outer_alias": "prj", "inner_alias": "empl", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03586", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(name, status, level, type)\n schedules(level, amount, status, id)\nTask: Retrieve amount from sales whose code is found in schedules rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE code IN (\n SELECT code FROM schedules AS schd\n WHERE schd.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "schedules", "outer_alias": "sale", "inner_alias": "schd", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03587", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(code, status, salary, type)\n projects(status, name, id, level)\nTask: Retrieve code from sales whose status is found in projects rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE status IN (\n SELECT status FROM projects AS prj\n WHERE prj.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "projects", "outer_alias": "sale", "inner_alias": "prj", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03588", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(id, level, salary, date)\n customers(status, type, level, name)\nTask: Retrieve id from projects whose code is found in customers rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "customers", "outer_alias": "prj", "inner_alias": "cust", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03589", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(date, code, salary, id)\n invoices(status, salary, level, amount)\nTask: Find amount from managers where a matching record exists in invoices with the same level.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "invoices", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03590", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(level, name, amount, date)\n tasks(code, id, salary, value)\nTask: Find amount from categories where type appears in tasks entries with matching type.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "tasks", "outer_alias": "catg", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03591", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(level, amount, type, id)\n schedules(amount, status, code, name)\nTask: Find name from items where type appears in schedules entries with matching type.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "schedules", "outer_alias": "lne", "inner_alias": "schd", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03592", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(level, name, value, type)\n transactions(id, code, level, date)\nTask: Select value from sales where code exists in transactions for the same status.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "transactions", "outer_alias": "sale", "inner_alias": "txn", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03593", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(salary, date, status, type)\n customers(date, value, name, amount)\nTask: Retrieve name from branches whose id is found in customers rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE id IN (\n SELECT id FROM customers AS cust\n WHERE cust.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "customers", "outer_alias": "brc", "inner_alias": "cust", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03594", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(name, date, salary, id)\n tasks(status, date, value, salary)\nTask: Find id from staff where level appears in tasks entries with matching level.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE level IN (\n SELECT level FROM tasks AS tsk\n WHERE tsk.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "tasks", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03595", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(status, id, salary, level)\n tasks(level, type, value, code)\nTask: Find name from products where salary exceeds the maximum amount from tasks for the same code.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM tasks AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "tasks", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03596", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(level, id, amount, status)\n schedules(name, code, level, date)\nTask: Find value from items where amount exceeds the total salary from schedules for the same code.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE amount > (\n SELECT SUM(salary) FROM schedules AS schd\n WHERE schd.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "schedules", "outer_alias": "lne", "inner_alias": "schd", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03597", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(status, salary, amount, id)\n departments(name, amount, salary, status)\nTask: Find code from sales where code appears in departments entries with matching id.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "departments", "outer_alias": "sale", "inner_alias": "dept", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03598", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(level, code, status, value)\n transactions(amount, date, status, code)\nTask: Find name from schedules where value exceeds the maximum salary from transactions for the same code.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE value > (\n SELECT MAX(salary) FROM transactions AS txn\n WHERE txn.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "transactions", "outer_alias": "schd", "inner_alias": "txn", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03599", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(id, amount, salary, value)\n tasks(level, name, amount, id)\nTask: Find code from products where a matching record exists in tasks with the same type.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "tasks", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03600", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(level, amount, status, type)\n orders(type, amount, name, id)\nTask: Select name from shipments where code exists in orders for the same level.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM orders AS ord\n WHERE ord.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "orders", "outer_alias": "shp", "inner_alias": "ord", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03601", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(level, code, id, salary)\n sales(level, code, status, amount)\nTask: Find code from branches where a matching record exists in sales with the same type.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "sales", "outer_alias": "brc", "inner_alias": "sale", "proj_col": "code", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03602", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(id, status, salary, value)\n categories(date, level, name, value)\nTask: Find id from sales where a matching record exists in categories with the same status.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "categories", "outer_alias": "sale", "inner_alias": "catg", "proj_col": "id", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03603", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(amount, status, name, date)\n staff(date, amount, code, status)\nTask: Find name from branches where a matching record exists in staff with the same type.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "staff", "outer_alias": "brc", "inner_alias": "empl", "proj_col": "name", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03604", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(level, name, id, salary)\n shipments(level, value, id, name)\nTask: Find id from regions where a matching record exists in shipments with the same code.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "shipments", "outer_alias": "rgn", "inner_alias": "shp", "proj_col": "id", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03605", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(type, status, level, code)\n orders(level, code, id, value)\nTask: Find name from schedules where a matching record exists in orders with the same code.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "orders", "outer_alias": "schd", "inner_alias": "ord", "proj_col": "name", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03606", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(id, level, code, status)\n orders(date, name, value, status)\nTask: Find amount from transactions where level appears in orders entries with matching status.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "orders", "outer_alias": "txn", "inner_alias": "ord", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03607", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(value, amount, code, type)\n branches(status, date, code, name)\nTask: Find value from items where amount exceeds the total amount from branches for the same level.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE amount > (\n SELECT SUM(amount) FROM branches AS brc\n WHERE brc.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03608", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(date, value, status, name)\n projects(date, amount, id, value)\nTask: Retrieve id from managers that have at least one corresponding entry in projects sharing the same type.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "projects", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03609", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(type, level, status, amount)\n departments(code, salary, amount, name)\nTask: Find value from staff where a matching record exists in departments with the same id.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "departments", "outer_alias": "empl", "inner_alias": "dept", "proj_col": "value", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03610", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(status, name, date, value)\n regions(amount, id, name, salary)\nTask: Find amount from requests where salary exceeds the total value from regions for the same level.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE salary > (\n SELECT SUM(value) FROM regions AS rgn\n WHERE rgn.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "regions", "outer_alias": "ordr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03611", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(type, name, salary, status)\n orders(value, status, amount, date)\nTask: Retrieve salary from projects that have at least one corresponding entry in orders sharing the same code.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "salary", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03612", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(name, level, status, code)\n sales(date, code, id, type)\nTask: Select name from shipments where status exists in sales for the same id.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "sales", "outer_alias": "shp", "inner_alias": "sale", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03613", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(value, amount, code, level)\n branches(id, level, amount, code)\nTask: Retrieve name from schedules that have at least one corresponding entry in branches sharing the same code.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "branches", "outer_alias": "schd", "inner_alias": "brc", "proj_col": "name", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03614", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(level, amount, code, date)\n categories(value, amount, status, level)\nTask: Find value from requests where value exceeds the minimum salary from categories for the same type.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE value > (\n SELECT MIN(salary) FROM categories AS catg\n WHERE catg.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "categories", "outer_alias": "ordr", "inner_alias": "catg", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03615", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(level, status, id, date)\n regions(status, salary, name, level)\nTask: Find value from accounts where value exceeds the average salary from regions for the same level.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE value > (\n SELECT AVG(salary) FROM regions AS rgn\n WHERE rgn.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "regions", "outer_alias": "acct", "inner_alias": "rgn", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03616", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(amount, date, name, value)\n shipments(value, date, id, code)\nTask: Retrieve name from tasks whose code is found in shipments rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "shipments", "outer_alias": "tsk", "inner_alias": "shp", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03617", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(value, type, salary, status)\n customers(code, date, salary, name)\nTask: Find amount from schedules where amount exceeds the minimum salary from customers for the same code.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE amount > (\n SELECT MIN(salary) FROM customers AS cust\n WHERE cust.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "customers", "outer_alias": "schd", "inner_alias": "cust", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03618", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(id, code, name, type)\n shipments(type, code, amount, level)\nTask: Find value from regions where value exceeds the minimum amount from shipments for the same code.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE value > (\n SELECT MIN(amount) FROM shipments AS shp\n WHERE shp.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "shipments", "outer_alias": "rgn", "inner_alias": "shp", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03619", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(date, type, status, name)\n regions(date, code, type, salary)\nTask: Find name from accounts where id appears in regions entries with matching id.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "regions", "outer_alias": "acct", "inner_alias": "rgn", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03620", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(amount, code, status, value)\n departments(id, date, salary, type)\nTask: Select amount from customers where status exists in departments for the same code.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE status IN (\n SELECT status FROM departments AS dept\n WHERE dept.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "departments", "outer_alias": "cust", "inner_alias": "dept", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03621", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(level, status, salary, amount)\n requests(code, date, value, level)\nTask: Select salary from staff where level exists in requests for the same id.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE level IN (\n SELECT level FROM requests AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "requests", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03622", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(amount, id, code, salary)\n customers(type, salary, name, code)\nTask: Find id from sales where a matching record exists in customers with the same code.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "customers", "outer_alias": "sale", "inner_alias": "cust", "proj_col": "id", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03623", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(type, amount, status, date)\n branches(code, level, id, status)\nTask: Retrieve id from items whose id is found in branches rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE id IN (\n SELECT id FROM branches AS brc\n WHERE brc.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03624", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(date, code, salary, type)\n requests(name, amount, date, level)\nTask: Find name from transactions where a matching record exists in requests with the same type.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "requests", "outer_alias": "txn", "inner_alias": "ordr", "proj_col": "name", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03625", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(id, name, value, status)\n sales(id, status, type, level)\nTask: Retrieve name from staff that have at least one corresponding entry in sales sharing the same level.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "sales", "outer_alias": "empl", "inner_alias": "sale", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03626", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(type, salary, id, name)\n staff(date, value, status, type)\nTask: Find name from sales where amount exceeds the count of salary from staff for the same status.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE amount > (\n SELECT COUNT(salary) FROM staff AS empl\n WHERE empl.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "staff", "outer_alias": "sale", "inner_alias": "empl", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03627", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(name, code, id, value)\n branches(level, id, name, salary)\nTask: Find value from requests where a matching record exists in branches with the same level.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "branches", "outer_alias": "ordr", "inner_alias": "brc", "proj_col": "value", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03628", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(type, level, status, salary)\n tasks(salary, id, amount, type)\nTask: Retrieve name from invoices whose status is found in tasks rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE status IN (\n SELECT status FROM tasks AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03629", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(date, type, id, salary)\n staff(code, id, type, name)\nTask: Select value from invoices where id exists in staff for the same code.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM staff AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "staff", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03630", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(id, code, level, status)\n orders(value, type, id, code)\nTask: Find salary from staff where amount exceeds the total salary from orders for the same status.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE amount > (\n SELECT SUM(salary) FROM orders AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "orders", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03631", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(status, level, date, code)\n managers(code, id, status, level)\nTask: Retrieve value from orders with amount above the AVG(value) of managers rows sharing the same type.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE amount > (\n SELECT AVG(value) FROM managers AS mgr\n WHERE mgr.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "managers", "outer_alias": "ord", "inner_alias": "mgr", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03632", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(code, amount, name, status)\n projects(name, date, id, salary)\nTask: Find id from branches where amount exceeds the count of value from projects for the same status.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE amount > (\n SELECT COUNT(value) FROM projects AS prj\n WHERE prj.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "projects", "outer_alias": "brc", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03633", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(salary, amount, value, level)\n sales(id, date, type, level)\nTask: Retrieve salary from requests with salary above the MIN(salary) of sales rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE salary > (\n SELECT MIN(salary) FROM sales AS sale\n WHERE sale.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "sales", "outer_alias": "ordr", "inner_alias": "sale", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03634", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(id, status, type, salary)\n invoices(code, name, id, status)\nTask: Retrieve value from sales with amount above the MAX(salary) of invoices rows sharing the same id.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE amount > (\n SELECT MAX(salary) FROM invoices AS inv\n WHERE inv.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "invoices", "outer_alias": "sale", "inner_alias": "inv", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03635", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(type, name, status, code)\n products(date, value, status, id)\nTask: Retrieve value from shipments that have at least one corresponding entry in products sharing the same id.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "value", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03636", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(value, code, level, id)\n orders(date, salary, code, name)\nTask: Retrieve id from employees whose status is found in orders rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE status IN (\n SELECT status FROM orders AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "orders", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03637", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(id, date, status, value)\n transactions(name, value, level, type)\nTask: Find code from projects where salary exceeds the total amount from transactions for the same id.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE salary > (\n SELECT SUM(amount) FROM transactions AS txn\n WHERE txn.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "transactions", "outer_alias": "prj", "inner_alias": "txn", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03638", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(date, name, value, type)\n departments(type, salary, status, id)\nTask: Find value from staff where value exceeds the total value from departments for the same id.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE value > (\n SELECT SUM(value) FROM departments AS dept\n WHERE dept.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "departments", "outer_alias": "empl", "inner_alias": "dept", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03639", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(level, date, id, salary)\n projects(status, type, id, code)\nTask: Retrieve code from departments whose status is found in projects rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE status IN (\n SELECT status FROM projects AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "projects", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03640", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(status, value, date, code)\n requests(id, amount, code, value)\nTask: Retrieve amount from branches with salary above the AVG(value) of requests rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE salary > (\n SELECT AVG(value) FROM requests AS ordr\n WHERE ordr.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "requests", "outer_alias": "brc", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03641", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(code, name, level, type)\n tasks(name, salary, id, date)\nTask: Select salary from accounts where type exists in tasks for the same status.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "tasks", "outer_alias": "acct", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03642", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(type, amount, level, code)\n projects(salary, name, status, code)\nTask: Find id from requests where a matching record exists in projects with the same id.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "projects", "outer_alias": "ordr", "inner_alias": "prj", "proj_col": "id", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03643", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(level, amount, id, status)\n regions(amount, level, code, name)\nTask: Retrieve salary from managers that have at least one corresponding entry in regions sharing the same type.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "regions", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03644", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(amount, name, date, value)\n projects(status, salary, date, code)\nTask: Retrieve name from transactions that have at least one corresponding entry in projects sharing the same type.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "name", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03645", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(date, amount, level, type)\n products(level, salary, amount, name)\nTask: Retrieve id from transactions with salary above the MAX(value) of products rows sharing the same status.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE salary > (\n SELECT MAX(value) FROM products AS prod\n WHERE prod.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03646", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(name, amount, status, code)\n branches(type, value, salary, name)\nTask: Find id from categories where a matching record exists in branches with the same code.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "id", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03647", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(date, amount, id, salary)\n accounts(id, code, amount, value)\nTask: Retrieve code from invoices that have at least one corresponding entry in accounts sharing the same code.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03648", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(salary, amount, level, date)\n categories(name, salary, amount, type)\nTask: Find amount from employees where salary exceeds the minimum salary from categories for the same id.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE salary > (\n SELECT MIN(salary) FROM categories AS catg\n WHERE catg.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "categories", "outer_alias": "emp", "inner_alias": "catg", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03649", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(amount, code, level, name)\n employees(name, value, level, id)\nTask: Select code from categories where level exists in employees for the same type.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "employees", "outer_alias": "catg", "inner_alias": "emp", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03650", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(status, code, type, date)\n requests(level, type, name, status)\nTask: Find amount from categories where amount exceeds the total salary from requests for the same id.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE amount > (\n SELECT SUM(salary) FROM requests AS ordr\n WHERE ordr.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "requests", "outer_alias": "catg", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03651", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(status, amount, salary, code)\n shipments(code, salary, date, type)\nTask: Select code from orders where code exists in shipments for the same type.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "shipments", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03652", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(level, name, amount, id)\n sales(level, amount, value, id)\nTask: Retrieve value from items whose id is found in sales rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE id IN (\n SELECT id FROM sales AS sale\n WHERE sale.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "sales", "outer_alias": "lne", "inner_alias": "sale", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03653", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(value, salary, status, level)\n transactions(level, status, name, code)\nTask: Find code from categories where amount exceeds the total salary from transactions for the same type.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE amount > (\n SELECT SUM(salary) FROM transactions AS txn\n WHERE txn.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "transactions", "outer_alias": "catg", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03654", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(name, amount, id, type)\n categories(value, date, amount, salary)\nTask: Retrieve salary from branches whose status is found in categories rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE status IN (\n SELECT status FROM categories AS catg\n WHERE catg.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "categories", "outer_alias": "brc", "inner_alias": "catg", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03655", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(salary, id, date, value)\n transactions(code, id, amount, level)\nTask: Retrieve salary from sales with value above the MAX(amount) of transactions rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE value > (\n SELECT MAX(amount) FROM transactions AS txn\n WHERE txn.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "transactions", "outer_alias": "sale", "inner_alias": "txn", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03656", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(status, value, name, date)\n transactions(status, amount, type, level)\nTask: Find amount from staff where amount exceeds the count of value from transactions for the same id.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE amount > (\n SELECT COUNT(value) FROM transactions AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "transactions", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03657", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(name, status, code, amount)\n tasks(type, code, name, status)\nTask: Retrieve id from regions whose type is found in tasks rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "tasks", "outer_alias": "rgn", "inner_alias": "tsk", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03658", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(amount, code, value, status)\n regions(name, type, value, level)\nTask: Find id from employees where value exceeds the count of value from regions for the same code.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE value > (\n SELECT COUNT(value) FROM regions AS rgn\n WHERE rgn.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "regions", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03659", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(code, date, name, level)\n tasks(value, name, salary, amount)\nTask: Find name from sales where value exceeds the average amount from tasks for the same level.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE value > (\n SELECT AVG(amount) FROM tasks AS tsk\n WHERE tsk.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "tasks", "outer_alias": "sale", "inner_alias": "tsk", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03660", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(salary, date, level, id)\n branches(level, id, type, amount)\nTask: Retrieve value from tasks whose type is found in branches rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM branches AS brc\n WHERE brc.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "branches", "outer_alias": "tsk", "inner_alias": "brc", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03661", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(status, amount, id, name)\n shipments(id, amount, type, date)\nTask: Find amount from orders where salary exceeds the minimum salary from shipments for the same status.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE salary > (\n SELECT MIN(salary) FROM shipments AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "shipments", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03662", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(level, id, status, name)\n customers(level, id, name, status)\nTask: Find code from products where a matching record exists in customers with the same code.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "customers", "outer_alias": "prod", "inner_alias": "cust", "proj_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03663", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(date, salary, code, id)\n products(name, status, date, id)\nTask: Retrieve id from requests that have at least one corresponding entry in products sharing the same status.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "products", "outer_alias": "ordr", "inner_alias": "prod", "proj_col": "id", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03664", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(status, level, value, code)\n customers(status, salary, name, amount)\nTask: Retrieve name from projects whose level is found in customers rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "customers", "outer_alias": "prj", "inner_alias": "cust", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03665", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(level, amount, value, id)\n products(type, value, code, salary)\nTask: Find id from accounts where salary exceeds the average salary from products for the same type.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE salary > (\n SELECT AVG(salary) FROM products AS prod\n WHERE prod.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03666", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(level, date, value, status)\n employees(level, type, id, value)\nTask: Retrieve amount from shipments that have at least one corresponding entry in employees sharing the same status.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "employees", "outer_alias": "shp", "inner_alias": "emp", "proj_col": "amount", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03667", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(value, name, id, code)\n requests(value, status, id, amount)\nTask: Retrieve amount from orders that have at least one corresponding entry in requests sharing the same status.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "requests", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "amount", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03668", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(date, status, salary, type)\n projects(type, id, salary, status)\nTask: Find value from requests where value exceeds the count of value from projects for the same id.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE value > (\n SELECT COUNT(value) FROM projects AS prj\n WHERE prj.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "projects", "outer_alias": "ordr", "inner_alias": "prj", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03669", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(type, code, date, value)\n invoices(date, level, code, type)\nTask: Find salary from regions where status appears in invoices entries with matching type.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE status IN (\n SELECT status FROM invoices AS inv\n WHERE inv.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "invoices", "outer_alias": "rgn", "inner_alias": "inv", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03670", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(name, status, level, type)\n items(name, amount, type, code)\nTask: Find id from accounts where a matching record exists in items with the same level.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "items", "outer_alias": "acct", "inner_alias": "lne", "proj_col": "id", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03671", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(status, name, salary, id)\n staff(amount, date, salary, level)\nTask: Retrieve code from departments that have at least one corresponding entry in staff sharing the same level.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03672", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(salary, date, id, level)\n invoices(date, name, salary, status)\nTask: Find salary from employees where a matching record exists in invoices with the same id.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "salary", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03673", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(type, id, date, value)\n departments(date, name, status, amount)\nTask: Retrieve name from schedules that have at least one corresponding entry in departments sharing the same code.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "departments", "outer_alias": "schd", "inner_alias": "dept", "proj_col": "name", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03674", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(value, date, amount, id)\n projects(salary, name, value, code)\nTask: Select value from categories where level exists in projects for the same code.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "projects", "outer_alias": "catg", "inner_alias": "prj", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03675", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(level, code, salary, name)\n regions(code, name, date, salary)\nTask: Retrieve salary from requests that have at least one corresponding entry in regions sharing the same id.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "regions", "outer_alias": "ordr", "inner_alias": "rgn", "proj_col": "salary", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03676", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(id, salary, name, status)\n accounts(id, type, name, date)\nTask: Retrieve name from transactions that have at least one corresponding entry in accounts sharing the same status.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "accounts", "outer_alias": "txn", "inner_alias": "acct", "proj_col": "name", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03677", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(salary, amount, type, name)\n sales(status, type, date, id)\nTask: Find name from shipments where salary exceeds the minimum amount from sales for the same status.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE salary > (\n SELECT MIN(amount) FROM sales AS sale\n WHERE sale.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "sales", "outer_alias": "shp", "inner_alias": "sale", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03678", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(salary, type, value, date)\n schedules(code, type, value, status)\nTask: Retrieve value from categories with value above the SUM(value) of schedules rows sharing the same status.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE value > (\n SELECT SUM(value) FROM schedules AS schd\n WHERE schd.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "schedules", "outer_alias": "catg", "inner_alias": "schd", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03679", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(status, name, amount, level)\n sales(value, name, code, date)\nTask: Find salary from branches where id appears in sales entries with matching level.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE id IN (\n SELECT id FROM sales AS sale\n WHERE sale.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "sales", "outer_alias": "brc", "inner_alias": "sale", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03680", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(type, date, name, code)\n branches(amount, value, status, code)\nTask: Find salary from invoices where a matching record exists in branches with the same code.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "branches", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "salary", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03681", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(name, code, type, salary)\n products(status, date, name, code)\nTask: Find code from accounts where a matching record exists in products with the same code.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "code", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03682", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(name, amount, id, code)\n tasks(status, date, code, amount)\nTask: Find id from sales where id appears in tasks entries with matching status.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE id IN (\n SELECT id FROM tasks AS tsk\n WHERE tsk.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "tasks", "outer_alias": "sale", "inner_alias": "tsk", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03683", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(value, code, salary, name)\n staff(id, value, date, code)\nTask: Find amount from regions where a matching record exists in staff with the same id.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "staff", "outer_alias": "rgn", "inner_alias": "empl", "proj_col": "amount", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03684", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(name, type, status, level)\n products(id, value, code, date)\nTask: Select value from employees where id exists in products for the same id.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03685", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(name, level, code, date)\n employees(status, amount, value, date)\nTask: Select salary from shipments where code exists in employees for the same status.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "employees", "outer_alias": "shp", "inner_alias": "emp", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03686", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(level, amount, salary, id)\n products(date, type, name, level)\nTask: Find salary from branches where value exceeds the average amount from products for the same level.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE value > (\n SELECT AVG(amount) FROM products AS prod\n WHERE prod.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "products", "outer_alias": "brc", "inner_alias": "prod", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03687", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(salary, amount, level, status)\n projects(date, name, salary, id)\nTask: Retrieve salary from schedules that have at least one corresponding entry in projects sharing the same status.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "projects", "outer_alias": "schd", "inner_alias": "prj", "proj_col": "salary", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03688", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(type, code, level, salary)\n managers(name, level, type, amount)\nTask: Retrieve amount from projects with amount above the AVG(amount) of managers rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE amount > (\n SELECT AVG(amount) FROM managers AS mgr\n WHERE mgr.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "managers", "outer_alias": "prj", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03689", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(id, amount, name, value)\n shipments(salary, value, amount, date)\nTask: Retrieve id from accounts with value above the MAX(value) of shipments rows sharing the same type.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE value > (\n SELECT MAX(value) FROM shipments AS shp\n WHERE shp.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "shipments", "outer_alias": "acct", "inner_alias": "shp", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03690", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(level, id, status, amount)\n regions(code, id, name, value)\nTask: Retrieve name from transactions with value above the COUNT(value) of regions rows sharing the same level.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE value > (\n SELECT COUNT(value) FROM regions AS rgn\n WHERE rgn.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03691", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, date, name, level)\n items(name, date, salary, status)\nTask: Select name from shipments where type exists in items for the same id.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "items", "outer_alias": "shp", "inner_alias": "lne", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03692", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(level, value, status, amount)\n schedules(value, level, salary, amount)\nTask: Retrieve amount from staff with amount above the SUM(amount) of schedules rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE amount > (\n SELECT SUM(amount) FROM schedules AS schd\n WHERE schd.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "schedules", "outer_alias": "empl", "inner_alias": "schd", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03693", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(code, value, amount, level)\n staff(amount, status, name, salary)\nTask: Find code from tasks where salary exceeds the average value from staff for the same code.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE salary > (\n SELECT AVG(value) FROM staff AS empl\n WHERE empl.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "staff", "outer_alias": "tsk", "inner_alias": "empl", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03694", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(value, amount, id, salary)\n transactions(id, name, value, amount)\nTask: Find value from regions where type appears in transactions entries with matching code.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM transactions AS txn\n WHERE txn.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "transactions", "outer_alias": "rgn", "inner_alias": "txn", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03695", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(salary, value, amount, type)\n regions(date, salary, code, type)\nTask: Find value from managers where salary exceeds the count of salary from regions for the same level.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE salary > (\n SELECT COUNT(salary) FROM regions AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "regions", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03696", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(type, value, code, amount)\n regions(type, amount, name, date)\nTask: Retrieve amount from projects that have at least one corresponding entry in regions sharing the same level.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "regions", "outer_alias": "prj", "inner_alias": "rgn", "proj_col": "amount", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03697", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(salary, status, code, amount)\n sales(name, status, level, salary)\nTask: Retrieve value from transactions with salary above the MIN(amount) of sales rows sharing the same code.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE salary > (\n SELECT MIN(amount) FROM sales AS sale\n WHERE sale.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "sales", "outer_alias": "txn", "inner_alias": "sale", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03698", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(status, amount, value, type)\n tasks(code, date, name, salary)\nTask: Find salary from regions where a matching record exists in tasks with the same code.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "tasks", "outer_alias": "rgn", "inner_alias": "tsk", "proj_col": "salary", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03699", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(status, code, id, amount)\n tasks(date, salary, status, value)\nTask: Retrieve id from staff whose code is found in tasks rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE code IN (\n SELECT code FROM tasks AS tsk\n WHERE tsk.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "tasks", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03700", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(code, level, salary, id)\n requests(amount, level, value, id)\nTask: Retrieve name from items that have at least one corresponding entry in requests sharing the same level.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "requests", "outer_alias": "lne", "inner_alias": "ordr", "proj_col": "name", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03701", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(name, code, amount, status)\n tasks(amount, salary, level, name)\nTask: Find value from invoices where a matching record exists in tasks with the same level.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03702", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(status, code, level, value)\n schedules(level, amount, status, date)\nTask: Retrieve amount from customers with amount above the MIN(amount) of schedules rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE amount > (\n SELECT MIN(amount) FROM schedules AS schd\n WHERE schd.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "schedules", "outer_alias": "cust", "inner_alias": "schd", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03703", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(level, id, date, name)\n projects(value, status, code, name)\nTask: Retrieve code from products with amount above the MIN(salary) of projects rows sharing the same level.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE amount > (\n SELECT MIN(salary) FROM projects AS prj\n WHERE prj.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "projects", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03704", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(id, name, type, salary)\n employees(salary, amount, value, code)\nTask: Find salary from projects where a matching record exists in employees with the same level.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "employees", "outer_alias": "prj", "inner_alias": "emp", "proj_col": "salary", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03705", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(status, code, name, amount)\n branches(name, value, id, type)\nTask: Find value from accounts where type appears in branches entries with matching level.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE type IN (\n SELECT type FROM branches AS brc\n WHERE brc.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "branches", "outer_alias": "acct", "inner_alias": "brc", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03706", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(level, value, date, type)\n departments(value, date, salary, level)\nTask: Select id from projects where level exists in departments for the same level.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "departments", "outer_alias": "prj", "inner_alias": "dept", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03707", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(type, code, level, salary)\n transactions(code, salary, status, date)\nTask: Retrieve value from staff with salary above the MAX(salary) of transactions rows sharing the same id.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE salary > (\n SELECT MAX(salary) FROM transactions AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "transactions", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03708", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(salary, type, amount, date)\n branches(status, name, level, amount)\nTask: Select name from sales where type exists in branches for the same type.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE type IN (\n SELECT type FROM branches AS brc\n WHERE brc.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "branches", "outer_alias": "sale", "inner_alias": "brc", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03709", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(date, salary, name, type)\n sales(date, id, salary, status)\nTask: Find value from tasks where amount exceeds the count of salary from sales for the same type.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE amount > (\n SELECT COUNT(salary) FROM sales AS sale\n WHERE sale.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "sales", "outer_alias": "tsk", "inner_alias": "sale", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03710", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(level, date, name, type)\n departments(name, amount, type, status)\nTask: Retrieve amount from projects that have at least one corresponding entry in departments sharing the same code.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "departments", "outer_alias": "prj", "inner_alias": "dept", "proj_col": "amount", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03711", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(id, type, salary, code)\n branches(name, salary, status, value)\nTask: Find value from shipments where value exceeds the minimum value from branches for the same status.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE value > (\n SELECT MIN(value) FROM branches AS brc\n WHERE brc.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "branches", "outer_alias": "shp", "inner_alias": "brc", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03712", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(value, code, id, date)\n managers(amount, value, salary, name)\nTask: Find id from branches where type appears in managers entries with matching level.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03713", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(id, amount, salary, status)\n accounts(salary, type, date, code)\nTask: Retrieve code from categories whose level is found in accounts rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE level IN (\n SELECT level FROM accounts AS acct\n WHERE acct.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "accounts", "outer_alias": "catg", "inner_alias": "acct", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03714", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(date, status, amount, type)\n products(salary, code, value, id)\nTask: Retrieve name from shipments that have at least one corresponding entry in products sharing the same status.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "name", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03715", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(level, date, id, code)\n regions(name, status, date, id)\nTask: Select value from customers where code exists in regions for the same code.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03716", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(value, id, type, name)\n transactions(date, value, amount, code)\nTask: Find value from sales where value exceeds the count of amount from transactions for the same type.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE value > (\n SELECT COUNT(amount) FROM transactions AS txn\n WHERE txn.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "transactions", "outer_alias": "sale", "inner_alias": "txn", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03717", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(id, salary, status, code)\n managers(code, id, value, salary)\nTask: Find value from staff where value exceeds the average value from managers for the same status.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE value > (\n SELECT AVG(value) FROM managers AS mgr\n WHERE mgr.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "managers", "outer_alias": "empl", "inner_alias": "mgr", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03718", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(level, type, amount, value)\n orders(name, salary, status, date)\nTask: Retrieve value from staff that have at least one corresponding entry in orders sharing the same code.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "orders", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03719", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(salary, name, date, value)\n shipments(name, salary, type, id)\nTask: Find name from accounts where value exceeds the maximum salary from shipments for the same id.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE value > (\n SELECT MAX(salary) FROM shipments AS shp\n WHERE shp.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "shipments", "outer_alias": "acct", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03720", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(name, type, id, level)\n staff(salary, type, code, amount)\nTask: Retrieve id from projects with salary above the SUM(salary) of staff rows sharing the same status.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE salary > (\n SELECT SUM(salary) FROM staff AS empl\n WHERE empl.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "staff", "outer_alias": "prj", "inner_alias": "empl", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03721", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(type, id, level, value)\n schedules(type, name, level, amount)\nTask: Find value from managers where amount exceeds the total salary from schedules for the same type.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE amount > (\n SELECT SUM(salary) FROM schedules AS schd\n WHERE schd.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "schedules", "outer_alias": "mgr", "inner_alias": "schd", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03722", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(id, amount, code, level)\n accounts(type, date, id, code)\nTask: Select name from sales where id exists in accounts for the same type.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE id IN (\n SELECT id FROM accounts AS acct\n WHERE acct.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "accounts", "outer_alias": "sale", "inner_alias": "acct", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03723", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(name, date, salary, value)\n products(amount, level, type, status)\nTask: Find amount from requests where a matching record exists in products with the same type.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "products", "outer_alias": "ordr", "inner_alias": "prod", "proj_col": "amount", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03724", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(date, amount, salary, type)\n categories(type, name, date, level)\nTask: Find code from schedules where salary exceeds the total value from categories for the same level.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE salary > (\n SELECT SUM(value) FROM categories AS catg\n WHERE catg.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "categories", "outer_alias": "schd", "inner_alias": "catg", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03725", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(value, salary, status, amount)\n departments(status, value, level, code)\nTask: Retrieve amount from tasks with amount above the COUNT(amount) of departments rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE amount > (\n SELECT COUNT(amount) FROM departments AS dept\n WHERE dept.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "departments", "outer_alias": "tsk", "inner_alias": "dept", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03726", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(type, id, level, value)\n branches(date, code, id, name)\nTask: Retrieve name from invoices with salary above the AVG(salary) of branches rows sharing the same code.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE salary > (\n SELECT AVG(salary) FROM branches AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "branches", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03727", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(amount, date, code, name)\n projects(type, level, value, id)\nTask: Retrieve salary from products with value above the MIN(value) of projects rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE value > (\n SELECT MIN(value) FROM projects AS prj\n WHERE prj.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "projects", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03728", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(status, type, name, date)\n schedules(date, salary, id, code)\nTask: Find name from invoices where amount exceeds the minimum amount from schedules for the same type.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE amount > (\n SELECT MIN(amount) FROM schedules AS schd\n WHERE schd.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03729", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(salary, type, date, code)\n invoices(value, name, type, date)\nTask: Find salary from sales where value exceeds the count of salary from invoices for the same level.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE value > (\n SELECT COUNT(salary) FROM invoices AS inv\n WHERE inv.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "invoices", "outer_alias": "sale", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03730", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(level, code, amount, date)\n managers(code, salary, name, id)\nTask: Retrieve code from tasks with salary above the AVG(amount) of managers rows sharing the same level.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE salary > (\n SELECT AVG(amount) FROM managers AS mgr\n WHERE mgr.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "managers", "outer_alias": "tsk", "inner_alias": "mgr", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03731", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(type, date, code, value)\n invoices(level, salary, date, id)\nTask: Find salary from projects where a matching record exists in invoices with the same code.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "invoices", "outer_alias": "prj", "inner_alias": "inv", "proj_col": "salary", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03732", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(amount, salary, date, value)\n employees(level, id, date, type)\nTask: Retrieve name from departments that have at least one corresponding entry in employees sharing the same level.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "employees", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03733", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(level, code, value, date)\n employees(id, type, value, level)\nTask: Find amount from items where amount exceeds the maximum value from employees for the same type.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE amount > (\n SELECT MAX(value) FROM employees AS emp\n WHERE emp.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03734", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(salary, code, amount, id)\n orders(value, id, level, date)\nTask: Retrieve name from products with salary above the MAX(amount) of orders rows sharing the same level.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM orders AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "orders", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03735", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(status, name, date, salary)\n tasks(value, salary, level, status)\nTask: Retrieve code from schedules whose level is found in tasks rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM tasks AS tsk\n WHERE tsk.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "tasks", "outer_alias": "schd", "inner_alias": "tsk", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03736", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(code, status, level, amount)\n accounts(code, type, name, id)\nTask: Find value from staff where status appears in accounts entries with matching type.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE status IN (\n SELECT status FROM accounts AS acct\n WHERE acct.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "accounts", "outer_alias": "empl", "inner_alias": "acct", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03737", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(id, name, value, salary)\n managers(id, level, type, date)\nTask: Retrieve code from projects that have at least one corresponding entry in managers sharing the same id.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "managers", "outer_alias": "prj", "inner_alias": "mgr", "proj_col": "code", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03738", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(status, level, name, date)\n items(name, date, status, code)\nTask: Retrieve code from accounts with amount above the MAX(salary) of items rows sharing the same level.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE amount > (\n SELECT MAX(salary) FROM items AS lne\n WHERE lne.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "items", "outer_alias": "acct", "inner_alias": "lne", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03739", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(status, amount, level, date)\n accounts(name, salary, status, amount)\nTask: Find salary from transactions where a matching record exists in accounts with the same level.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "accounts", "outer_alias": "txn", "inner_alias": "acct", "proj_col": "salary", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03740", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(date, id, amount, name)\n branches(type, status, salary, code)\nTask: Retrieve value from invoices whose code is found in branches rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "branches", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03741", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(date, level, type, name)\n employees(name, salary, type, value)\nTask: Retrieve salary from sales whose id is found in employees rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "employees", "outer_alias": "sale", "inner_alias": "emp", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03742", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(level, amount, name, id)\n invoices(date, id, code, salary)\nTask: Retrieve value from managers that have at least one corresponding entry in invoices sharing the same code.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "invoices", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03743", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(type, amount, salary, value)\n managers(amount, type, salary, code)\nTask: Retrieve name from requests that have at least one corresponding entry in managers sharing the same level.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "managers", "outer_alias": "ordr", "inner_alias": "mgr", "proj_col": "name", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03744", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(id, name, date, code)\n invoices(salary, date, value, name)\nTask: Find id from managers where type appears in invoices entries with matching id.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "invoices", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03745", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(date, level, type, amount)\n sales(code, salary, status, name)\nTask: Select code from schedules where status exists in sales for the same level.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "sales", "outer_alias": "schd", "inner_alias": "sale", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03746", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(id, name, salary, amount)\n items(type, status, value, code)\nTask: Retrieve id from customers whose id is found in items rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "items", "outer_alias": "cust", "inner_alias": "lne", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03747", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(code, name, amount, value)\n staff(status, value, level, name)\nTask: Find salary from tasks where a matching record exists in staff with the same status.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "staff", "outer_alias": "tsk", "inner_alias": "empl", "proj_col": "salary", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03748", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(code, id, amount, salary)\n transactions(code, date, value, type)\nTask: Select salary from products where type exists in transactions for the same status.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE type IN (\n SELECT type FROM transactions AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03749", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(value, type, code, amount)\n customers(level, type, amount, name)\nTask: Retrieve id from orders that have at least one corresponding entry in customers sharing the same id.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "customers", "outer_alias": "ord", "inner_alias": "cust", "proj_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03750", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(id, amount, date, code)\n branches(date, amount, code, status)\nTask: Select value from departments where type exists in branches for the same level.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE type IN (\n SELECT type FROM branches AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "branches", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03751", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(amount, name, code, status)\n accounts(name, amount, salary, value)\nTask: Find value from invoices where a matching record exists in accounts with the same type.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03752", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(salary, id, name, date)\n requests(id, level, value, amount)\nTask: Find id from schedules where a matching record exists in requests with the same status.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "requests", "outer_alias": "schd", "inner_alias": "ordr", "proj_col": "id", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03753", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(level, id, salary, status)\n schedules(date, level, value, name)\nTask: Select amount from invoices where id exists in schedules for the same code.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03754", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(name, type, date, amount)\n transactions(code, id, type, name)\nTask: Find salary from shipments where a matching record exists in transactions with the same status.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "transactions", "outer_alias": "shp", "inner_alias": "txn", "proj_col": "salary", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03755", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(level, status, type, id)\n customers(amount, name, salary, code)\nTask: Retrieve id from requests with amount above the SUM(salary) of customers rows sharing the same type.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE amount > (\n SELECT SUM(salary) FROM customers AS cust\n WHERE cust.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "customers", "outer_alias": "ordr", "inner_alias": "cust", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03756", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(date, type, salary, amount)\n regions(salary, id, level, name)\nTask: Retrieve id from staff with value above the MIN(amount) of regions rows sharing the same level.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE value > (\n SELECT MIN(amount) FROM regions AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "regions", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03757", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(level, amount, id, date)\n schedules(date, status, name, amount)\nTask: Retrieve id from transactions that have at least one corresponding entry in schedules sharing the same type.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "schedules", "outer_alias": "txn", "inner_alias": "schd", "proj_col": "id", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03758", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(id, value, name, status)\n regions(amount, status, value, date)\nTask: Find value from managers where salary exceeds the average salary from regions for the same type.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE salary > (\n SELECT AVG(salary) FROM regions AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "regions", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03759", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(level, code, value, type)\n sales(status, id, code, type)\nTask: Retrieve amount from invoices with value above the SUM(value) of sales rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE value > (\n SELECT SUM(value) FROM sales AS sale\n WHERE sale.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "sales", "outer_alias": "inv", "inner_alias": "sale", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03760", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(type, code, status, name)\n shipments(salary, id, name, value)\nTask: Retrieve name from customers whose level is found in shipments rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE level IN (\n SELECT level FROM shipments AS shp\n WHERE shp.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "shipments", "outer_alias": "cust", "inner_alias": "shp", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03761", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(date, amount, type, code)\n requests(code, id, name, status)\nTask: Find salary from employees where id appears in requests entries with matching status.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE id IN (\n SELECT id FROM requests AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "requests", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03762", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(name, date, code, id)\n products(amount, value, salary, code)\nTask: Find value from projects where a matching record exists in products with the same type.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "products", "outer_alias": "prj", "inner_alias": "prod", "proj_col": "value", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03763", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(id, type, name, status)\n transactions(code, amount, type, name)\nTask: Retrieve code from staff with amount above the SUM(salary) of transactions rows sharing the same code.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE amount > (\n SELECT SUM(salary) FROM transactions AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "transactions", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03764", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(level, name, type, status)\n invoices(id, status, value, type)\nTask: Select salary from branches where status exists in invoices for the same id.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE status IN (\n SELECT status FROM invoices AS inv\n WHERE inv.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "invoices", "outer_alias": "brc", "inner_alias": "inv", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03765", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(name, value, amount, date)\n requests(type, name, status, salary)\nTask: Find name from shipments where amount exceeds the average amount from requests for the same level.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE amount > (\n SELECT AVG(amount) FROM requests AS ordr\n WHERE ordr.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "requests", "outer_alias": "shp", "inner_alias": "ordr", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03766", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(status, amount, level, code)\n transactions(date, type, salary, value)\nTask: Retrieve name from schedules whose status is found in transactions rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE status IN (\n SELECT status FROM transactions AS txn\n WHERE txn.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "transactions", "outer_alias": "schd", "inner_alias": "txn", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03767", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(type, id, salary, name)\n sales(level, salary, type, id)\nTask: Select amount from categories where status exists in sales for the same type.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "sales", "outer_alias": "catg", "inner_alias": "sale", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03768", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(type, date, salary, name)\n departments(date, status, salary, type)\nTask: Select amount from employees where status exists in departments for the same code.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE status IN (\n SELECT status FROM departments AS dept\n WHERE dept.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "departments", "outer_alias": "emp", "inner_alias": "dept", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03769", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(salary, id, type, amount)\n items(value, type, status, amount)\nTask: Find code from orders where a matching record exists in items with the same id.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03770", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(status, date, value, name)\n projects(name, date, value, salary)\nTask: Retrieve id from transactions whose level is found in projects rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "projects", "outer_alias": "txn", "inner_alias": "prj", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03771", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(code, date, name, id)\n branches(id, type, level, status)\nTask: Retrieve salary from managers with value above the MIN(value) of branches rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE value > (\n SELECT MIN(value) FROM branches AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "branches", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03772", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(value, amount, status, id)\n regions(value, id, date, code)\nTask: Retrieve code from branches whose id is found in regions rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "regions", "outer_alias": "brc", "inner_alias": "rgn", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03773", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(name, salary, date, type)\n items(value, salary, code, date)\nTask: Select name from orders where status exists in items for the same status.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "items", "outer_alias": "ord", "inner_alias": "lne", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03774", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(status, level, amount, value)\n requests(level, id, code, name)\nTask: Retrieve value from products that have at least one corresponding entry in requests sharing the same status.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "requests", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "value", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03775", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(salary, amount, value, name)\n transactions(status, code, value, date)\nTask: Retrieve amount from products whose id is found in transactions rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE id IN (\n SELECT id FROM transactions AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03776", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(type, salary, date, status)\n managers(type, level, code, salary)\nTask: Retrieve name from products with salary above the SUM(amount) of managers rows sharing the same level.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE salary > (\n SELECT SUM(amount) FROM managers AS mgr\n WHERE mgr.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "managers", "outer_alias": "prod", "inner_alias": "mgr", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03777", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(type, amount, name, salary)\n departments(date, code, status, salary)\nTask: Retrieve id from accounts with value above the MAX(salary) of departments rows sharing the same type.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE value > (\n SELECT MAX(salary) FROM departments AS dept\n WHERE dept.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "departments", "outer_alias": "acct", "inner_alias": "dept", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03778", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(status, id, name, level)\n invoices(type, salary, name, date)\nTask: Find name from customers where a matching record exists in invoices with the same level.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "name", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03779", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(amount, level, id, status)\n departments(code, value, date, amount)\nTask: Retrieve amount from invoices whose type is found in departments rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM departments AS dept\n WHERE dept.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "departments", "outer_alias": "inv", "inner_alias": "dept", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03780", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(code, status, name, id)\n staff(salary, status, date, value)\nTask: Retrieve id from products with value above the COUNT(amount) of staff rows sharing the same type.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE value > (\n SELECT COUNT(amount) FROM staff AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03781", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(code, value, type, name)\n sales(code, id, value, status)\nTask: Find code from requests where value exceeds the average salary from sales for the same type.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE value > (\n SELECT AVG(salary) FROM sales AS sale\n WHERE sale.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "sales", "outer_alias": "ordr", "inner_alias": "sale", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03782", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(salary, type, code, amount)\n regions(status, level, amount, id)\nTask: Retrieve amount from orders with salary above the SUM(amount) of regions rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE salary > (\n SELECT SUM(amount) FROM regions AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "regions", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03783", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(code, id, type, name)\n accounts(amount, status, level, salary)\nTask: Find salary from sales where salary exceeds the average salary from accounts for the same status.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE salary > (\n SELECT AVG(salary) FROM accounts AS acct\n WHERE acct.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "accounts", "outer_alias": "sale", "inner_alias": "acct", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03784", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(name, level, code, amount)\n tasks(value, level, name, status)\nTask: Find value from sales where a matching record exists in tasks with the same level.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "tasks", "outer_alias": "sale", "inner_alias": "tsk", "proj_col": "value", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03785", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(salary, date, type, status)\n invoices(salary, amount, type, level)\nTask: Find value from products where amount exceeds the maximum value from invoices for the same code.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE amount > (\n SELECT MAX(value) FROM invoices AS inv\n WHERE inv.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "invoices", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03786", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(date, name, value, code)\n accounts(value, amount, salary, date)\nTask: Retrieve code from orders with salary above the SUM(amount) of accounts rows sharing the same status.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE salary > (\n SELECT SUM(amount) FROM accounts AS acct\n WHERE acct.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "accounts", "outer_alias": "ord", "inner_alias": "acct", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03787", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(level, salary, type, status)\n departments(code, id, level, name)\nTask: Find salary from regions where a matching record exists in departments with the same id.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "departments", "outer_alias": "rgn", "inner_alias": "dept", "proj_col": "salary", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03788", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(amount, level, date, salary)\n staff(date, type, status, level)\nTask: Select salary from transactions where level exists in staff for the same id.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "staff", "outer_alias": "txn", "inner_alias": "empl", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03789", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(type, value, level, date)\n transactions(id, type, salary, value)\nTask: Find value from staff where level appears in transactions entries with matching id.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "transactions", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03790", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(amount, value, id, code)\n departments(level, amount, type, date)\nTask: Retrieve amount from tasks that have at least one corresponding entry in departments sharing the same level.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "departments", "outer_alias": "tsk", "inner_alias": "dept", "proj_col": "amount", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03791", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(level, type, status, id)\n branches(name, value, status, level)\nTask: Select amount from departments where level exists in branches for the same type.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "branches", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03792", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(amount, value, status, code)\n items(level, amount, salary, code)\nTask: Retrieve salary from requests with amount above the MAX(value) of items rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE amount > (\n SELECT MAX(value) FROM items AS lne\n WHERE lne.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03793", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(amount, salary, code, status)\n transactions(value, id, level, date)\nTask: Retrieve name from shipments that have at least one corresponding entry in transactions sharing the same level.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "transactions", "outer_alias": "shp", "inner_alias": "txn", "proj_col": "name", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03794", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(salary, type, amount, level)\n employees(value, name, type, level)\nTask: Retrieve name from transactions with salary above the AVG(value) of employees rows sharing the same id.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE salary > (\n SELECT AVG(value) FROM employees AS emp\n WHERE emp.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03795", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(name, date, level, type)\n customers(value, level, salary, status)\nTask: Retrieve salary from sales that have at least one corresponding entry in customers sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "customers", "outer_alias": "sale", "inner_alias": "cust", "proj_col": "salary", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03796", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(value, status, id, amount)\n branches(salary, type, value, amount)\nTask: Find code from tasks where level appears in branches entries with matching level.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "branches", "outer_alias": "tsk", "inner_alias": "brc", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03797", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(status, date, name, code)\n invoices(type, status, name, salary)\nTask: Retrieve salary from regions that have at least one corresponding entry in invoices sharing the same status.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "invoices", "outer_alias": "rgn", "inner_alias": "inv", "proj_col": "salary", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03798", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(type, status, level, name)\n accounts(level, id, date, value)\nTask: Find amount from schedules where a matching record exists in accounts with the same type.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "accounts", "outer_alias": "schd", "inner_alias": "acct", "proj_col": "amount", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03799", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(id, date, code, amount)\n tasks(amount, code, name, type)\nTask: Retrieve name from regions whose status is found in tasks rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE status IN (\n SELECT status FROM tasks AS tsk\n WHERE tsk.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "tasks", "outer_alias": "rgn", "inner_alias": "tsk", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03800", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(level, id, status, type)\n managers(value, amount, code, status)\nTask: Retrieve code from staff with amount above the MAX(value) of managers rows sharing the same code.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE amount > (\n SELECT MAX(value) FROM managers AS mgr\n WHERE mgr.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "managers", "outer_alias": "empl", "inner_alias": "mgr", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03801", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(id, type, level, date)\n transactions(id, name, level, status)\nTask: Find id from products where value exceeds the minimum salary from transactions for the same type.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE value > (\n SELECT MIN(salary) FROM transactions AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03802", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(name, id, amount, code)\n schedules(level, date, id, salary)\nTask: Retrieve id from accounts that have at least one corresponding entry in schedules sharing the same id.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "schedules", "outer_alias": "acct", "inner_alias": "schd", "proj_col": "id", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03803", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(value, code, id, type)\n requests(amount, salary, type, code)\nTask: Find code from staff where type appears in requests entries with matching type.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "requests", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03804", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(id, salary, amount, type)\n staff(date, name, code, salary)\nTask: Retrieve salary from accounts that have at least one corresponding entry in staff sharing the same type.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "salary", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03805", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(code, id, level, amount)\n shipments(type, status, amount, value)\nTask: Find id from staff where a matching record exists in shipments with the same type.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03806", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(date, name, id, level)\n customers(name, status, id, value)\nTask: Retrieve value from tasks that have at least one corresponding entry in customers sharing the same id.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "customers", "outer_alias": "tsk", "inner_alias": "cust", "proj_col": "value", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03807", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(type, status, id, amount)\n staff(id, value, name, status)\nTask: Retrieve salary from shipments whose code is found in staff rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM staff AS empl\n WHERE empl.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "staff", "outer_alias": "shp", "inner_alias": "empl", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03808", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(amount, status, id, name)\n projects(id, type, date, name)\nTask: Retrieve value from branches that have at least one corresponding entry in projects sharing the same id.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "projects", "outer_alias": "brc", "inner_alias": "prj", "proj_col": "value", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03809", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(type, name, salary, level)\n requests(name, id, level, amount)\nTask: Find value from tasks where a matching record exists in requests with the same code.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "value", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03810", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(status, id, date, value)\n schedules(type, level, amount, status)\nTask: Find amount from sales where status appears in schedules entries with matching level.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE status IN (\n SELECT status FROM schedules AS schd\n WHERE schd.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "schedules", "outer_alias": "sale", "inner_alias": "schd", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03811", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(type, level, status, amount)\n tasks(salary, date, code, type)\nTask: Find salary from shipments where a matching record exists in tasks with the same code.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "salary", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03812", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(date, amount, name, code)\n managers(status, amount, name, code)\nTask: Find name from staff where a matching record exists in managers with the same id.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "managers", "outer_alias": "empl", "inner_alias": "mgr", "proj_col": "name", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03813", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(status, name, level, amount)\n products(code, value, id, status)\nTask: Find amount from branches where salary exceeds the maximum value from products for the same status.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE salary > (\n SELECT MAX(value) FROM products AS prod\n WHERE prod.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "products", "outer_alias": "brc", "inner_alias": "prod", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03814", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(name, status, type, amount)\n schedules(level, date, value, name)\nTask: Find id from transactions where a matching record exists in schedules with the same level.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "schedules", "outer_alias": "txn", "inner_alias": "schd", "proj_col": "id", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03815", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(name, date, value, type)\n managers(type, amount, name, level)\nTask: Retrieve id from shipments with value above the MAX(amount) of managers rows sharing the same type.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE value > (\n SELECT MAX(amount) FROM managers AS mgr\n WHERE mgr.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "managers", "outer_alias": "shp", "inner_alias": "mgr", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03816", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(amount, name, salary, code)\n categories(amount, date, id, type)\nTask: Select id from tasks where status exists in categories for the same code.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE status IN (\n SELECT status FROM categories AS catg\n WHERE catg.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "categories", "outer_alias": "tsk", "inner_alias": "catg", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03817", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(status, code, id, name)\n customers(amount, level, status, name)\nTask: Find value from employees where a matching record exists in customers with the same status.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "customers", "outer_alias": "emp", "inner_alias": "cust", "proj_col": "value", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03818", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(salary, id, name, value)\n regions(name, value, code, date)\nTask: Find salary from accounts where a matching record exists in regions with the same id.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "regions", "outer_alias": "acct", "inner_alias": "rgn", "proj_col": "salary", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03819", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(value, id, date, code)\n schedules(amount, status, id, code)\nTask: Find amount from shipments where salary exceeds the minimum amount from schedules for the same type.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE salary > (\n SELECT MIN(amount) FROM schedules AS schd\n WHERE schd.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "schedules", "outer_alias": "shp", "inner_alias": "schd", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03820", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(id, name, value, amount)\n customers(level, type, value, date)\nTask: Select id from requests where level exists in customers for the same type.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "customers", "outer_alias": "ordr", "inner_alias": "cust", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03821", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(salary, status, code, value)\n items(amount, date, status, code)\nTask: Retrieve name from customers with value above the COUNT(value) of items rows sharing the same status.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE value > (\n SELECT COUNT(value) FROM items AS lne\n WHERE lne.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "items", "outer_alias": "cust", "inner_alias": "lne", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03822", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(date, level, type, value)\n staff(name, status, date, value)\nTask: Retrieve code from sales whose level is found in staff rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "staff", "outer_alias": "sale", "inner_alias": "empl", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03823", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(id, type, level, status)\n departments(id, code, value, amount)\nTask: Select amount from schedules where code exists in departments for the same status.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "departments", "outer_alias": "schd", "inner_alias": "dept", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03824", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(type, id, name, code)\n products(amount, type, status, code)\nTask: Retrieve name from departments whose status is found in products rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "products", "outer_alias": "dept", "inner_alias": "prod", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03825", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(type, id, value, code)\n schedules(level, date, amount, name)\nTask: Retrieve salary from employees that have at least one corresponding entry in schedules sharing the same level.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "schedules", "outer_alias": "emp", "inner_alias": "schd", "proj_col": "salary", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03826", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(date, amount, type, level)\n products(status, value, type, level)\nTask: Find value from customers where salary exceeds the minimum salary from products for the same id.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE salary > (\n SELECT MIN(salary) FROM products AS prod\n WHERE prod.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "products", "outer_alias": "cust", "inner_alias": "prod", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03827", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(salary, date, type, name)\n schedules(id, type, code, date)\nTask: Retrieve salary from managers whose code is found in schedules rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM schedules AS schd\n WHERE schd.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "schedules", "outer_alias": "mgr", "inner_alias": "schd", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03828", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(status, type, code, date)\n departments(value, salary, id, date)\nTask: Retrieve salary from employees that have at least one corresponding entry in departments sharing the same level.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "departments", "outer_alias": "emp", "inner_alias": "dept", "proj_col": "salary", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03829", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(type, date, value, level)\n tasks(level, date, salary, type)\nTask: Retrieve salary from managers that have at least one corresponding entry in tasks sharing the same type.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "tasks", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03830", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(name, code, type, level)\n customers(salary, amount, id, status)\nTask: Retrieve amount from products with amount above the SUM(value) of customers rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE amount > (\n SELECT SUM(value) FROM customers AS cust\n WHERE cust.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "customers", "outer_alias": "prod", "inner_alias": "cust", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03831", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(id, level, value, status)\n customers(code, type, date, amount)\nTask: Retrieve code from categories with value above the MAX(value) of customers rows sharing the same level.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE value > (\n SELECT MAX(value) FROM customers AS cust\n WHERE cust.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "customers", "outer_alias": "catg", "inner_alias": "cust", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03832", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(date, status, id, name)\n shipments(id, level, type, value)\nTask: Retrieve name from branches that have at least one corresponding entry in shipments sharing the same code.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "shipments", "outer_alias": "brc", "inner_alias": "shp", "proj_col": "name", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03833", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(code, type, status, amount)\n orders(type, name, amount, code)\nTask: Find id from categories where value exceeds the maximum value from orders for the same type.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE value > (\n SELECT MAX(value) FROM orders AS ord\n WHERE ord.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "orders", "outer_alias": "catg", "inner_alias": "ord", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03834", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(type, level, salary, amount)\n shipments(level, salary, code, status)\nTask: Retrieve amount from customers whose code is found in shipments rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "shipments", "outer_alias": "cust", "inner_alias": "shp", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03835", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(level, salary, code, name)\n employees(status, amount, level, id)\nTask: Select amount from schedules where status exists in employees for the same code.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE status IN (\n SELECT status FROM employees AS emp\n WHERE emp.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03836", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, status, amount, salary)\n invoices(type, date, value, id)\nTask: Find name from regions where value exceeds the count of value from invoices for the same status.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE value > (\n SELECT COUNT(value) FROM invoices AS inv\n WHERE inv.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "invoices", "outer_alias": "rgn", "inner_alias": "inv", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03837", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(amount, status, code, date)\n accounts(status, type, level, id)\nTask: Find salary from employees where amount exceeds the count of amount from accounts for the same type.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM accounts AS acct\n WHERE acct.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "accounts", "outer_alias": "emp", "inner_alias": "acct", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03838", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(salary, type, date, value)\n departments(id, name, status, date)\nTask: Find amount from regions where a matching record exists in departments with the same type.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "departments", "outer_alias": "rgn", "inner_alias": "dept", "proj_col": "amount", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03839", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(id, value, salary, code)\n projects(level, value, amount, type)\nTask: Find code from employees where a matching record exists in projects with the same code.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "projects", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03840", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(salary, code, name, status)\n departments(value, type, date, amount)\nTask: Retrieve value from requests whose status is found in departments rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM departments AS dept\n WHERE dept.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "departments", "outer_alias": "ordr", "inner_alias": "dept", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03841", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(code, level, salary, date)\n tasks(date, status, salary, name)\nTask: Retrieve value from requests with value above the AVG(value) of tasks rows sharing the same type.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE value > (\n SELECT AVG(value) FROM tasks AS tsk\n WHERE tsk.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "tasks", "outer_alias": "ordr", "inner_alias": "tsk", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03842", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(id, type, salary, status)\n regions(amount, value, id, level)\nTask: Find amount from customers where a matching record exists in regions with the same level.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "amount", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03843", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(name, date, code, id)\n employees(code, id, date, status)\nTask: Select amount from items where type exists in employees for the same type.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03844", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(code, value, id, name)\n sales(amount, value, type, level)\nTask: Retrieve salary from items that have at least one corresponding entry in sales sharing the same id.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "sales", "outer_alias": "lne", "inner_alias": "sale", "proj_col": "salary", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03845", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(date, amount, status, value)\n sales(id, amount, name, status)\nTask: Find code from transactions where a matching record exists in sales with the same status.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "sales", "outer_alias": "txn", "inner_alias": "sale", "proj_col": "code", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03846", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(type, date, code, id)\n requests(salary, id, type, code)\nTask: Select salary from customers where status exists in requests for the same id.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "requests", "outer_alias": "cust", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03847", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(type, date, value, code)\n orders(type, status, amount, code)\nTask: Retrieve amount from employees with salary above the MIN(value) of orders rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE salary > (\n SELECT MIN(value) FROM orders AS ord\n WHERE ord.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "orders", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03848", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(name, value, level, amount)\n departments(code, id, status, amount)\nTask: Retrieve salary from categories whose level is found in departments rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "departments", "outer_alias": "catg", "inner_alias": "dept", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03849", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(salary, type, amount, level)\n staff(salary, date, status, name)\nTask: Select amount from projects where level exists in staff for the same id.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "staff", "outer_alias": "prj", "inner_alias": "empl", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03850", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(name, id, status, level)\n accounts(level, salary, amount, value)\nTask: Retrieve code from invoices with amount above the MAX(salary) of accounts rows sharing the same code.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE amount > (\n SELECT MAX(salary) FROM accounts AS acct\n WHERE acct.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03851", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(amount, status, salary, name)\n branches(status, level, type, value)\nTask: Retrieve id from items that have at least one corresponding entry in branches sharing the same type.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "id", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03852", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(type, amount, name, id)\n schedules(value, code, salary, amount)\nTask: Find value from staff where status appears in schedules entries with matching level.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE status IN (\n SELECT status FROM schedules AS schd\n WHERE schd.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "schedules", "outer_alias": "empl", "inner_alias": "schd", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03853", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(level, salary, date, amount)\n accounts(code, date, level, id)\nTask: Retrieve salary from staff with salary above the SUM(amount) of accounts rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE salary > (\n SELECT SUM(amount) FROM accounts AS acct\n WHERE acct.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "accounts", "outer_alias": "empl", "inner_alias": "acct", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03854", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, amount, name, level)\n projects(level, id, date, type)\nTask: Retrieve name from shipments whose type is found in projects rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM projects AS prj\n WHERE prj.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "projects", "outer_alias": "shp", "inner_alias": "prj", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03855", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(salary, level, id, date)\n items(name, value, date, status)\nTask: Select id from requests where status exists in items for the same code.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03856", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(code, salary, status, name)\n schedules(salary, name, date, amount)\nTask: Retrieve id from branches whose code is found in schedules rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE code IN (\n SELECT code FROM schedules AS schd\n WHERE schd.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "schedules", "outer_alias": "brc", "inner_alias": "schd", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03857", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(type, id, level, value)\n customers(name, status, date, amount)\nTask: Find value from categories where code appears in customers entries with matching code.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "customers", "outer_alias": "catg", "inner_alias": "cust", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03858", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(name, date, value, status)\n projects(code, level, name, id)\nTask: Find id from accounts where level appears in projects entries with matching code.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "projects", "outer_alias": "acct", "inner_alias": "prj", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03859", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(name, date, amount, level)\n schedules(level, status, salary, code)\nTask: Retrieve value from invoices that have at least one corresponding entry in schedules sharing the same level.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "value", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03860", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(salary, level, value, status)\n customers(value, id, amount, name)\nTask: Retrieve amount from items with salary above the SUM(amount) of customers rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE salary > (\n SELECT SUM(amount) FROM customers AS cust\n WHERE cust.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "customers", "outer_alias": "lne", "inner_alias": "cust", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03861", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(salary, amount, code, status)\n regions(level, name, type, value)\nTask: Find id from transactions where level appears in regions entries with matching type.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03862", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(value, salary, type, amount)\n staff(code, id, date, name)\nTask: Retrieve id from invoices that have at least one corresponding entry in staff sharing the same level.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "staff", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03863", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(name, id, status, salary)\n shipments(id, amount, salary, status)\nTask: Find id from departments where a matching record exists in shipments with the same status.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "shipments", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03864", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(salary, type, value, amount)\n sales(level, status, name, id)\nTask: Find amount from customers where a matching record exists in sales with the same status.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "sales", "outer_alias": "cust", "inner_alias": "sale", "proj_col": "amount", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03865", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(date, code, value, amount)\n regions(salary, date, code, status)\nTask: Select amount from managers where id exists in regions for the same level.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "regions", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03866", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(amount, level, id, value)\n branches(date, name, level, value)\nTask: Find value from products where salary exceeds the total amount from branches for the same type.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE salary > (\n SELECT SUM(amount) FROM branches AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "branches", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03867", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(value, amount, type, code)\n employees(name, salary, value, level)\nTask: Find code from schedules where a matching record exists in employees with the same level.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "code", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03868", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(name, id, salary, amount)\n schedules(salary, date, level, amount)\nTask: Retrieve id from departments with amount above the MIN(salary) of schedules rows sharing the same id.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE amount > (\n SELECT MIN(salary) FROM schedules AS schd\n WHERE schd.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "schedules", "outer_alias": "dept", "inner_alias": "schd", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03869", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(type, status, date, name)\n staff(code, date, id, type)\nTask: Find salary from departments where a matching record exists in staff with the same level.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03870", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(level, amount, salary, id)\n managers(name, level, status, type)\nTask: Find salary from employees where level appears in managers entries with matching id.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03871", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(status, amount, type, date)\n requests(status, amount, salary, id)\nTask: Find salary from schedules where salary exceeds the maximum amount from requests for the same status.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE salary > (\n SELECT MAX(amount) FROM requests AS ordr\n WHERE ordr.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "requests", "outer_alias": "schd", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03872", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(id, value, level, type)\n staff(code, level, amount, status)\nTask: Retrieve code from tasks with value above the MAX(amount) of staff rows sharing the same type.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE value > (\n SELECT MAX(amount) FROM staff AS empl\n WHERE empl.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "staff", "outer_alias": "tsk", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03873", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(status, salary, type, amount)\n invoices(value, date, code, salary)\nTask: Find salary from accounts where a matching record exists in invoices with the same id.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "invoices", "outer_alias": "acct", "inner_alias": "inv", "proj_col": "salary", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03874", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(code, level, date, id)\n transactions(id, level, salary, amount)\nTask: Retrieve name from accounts that have at least one corresponding entry in transactions sharing the same level.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "transactions", "outer_alias": "acct", "inner_alias": "txn", "proj_col": "name", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03875", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(date, salary, code, value)\n schedules(type, date, name, amount)\nTask: Find id from departments where a matching record exists in schedules with the same type.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "schedules", "outer_alias": "dept", "inner_alias": "schd", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03876", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(amount, salary, code, status)\n schedules(name, value, amount, type)\nTask: Select amount from invoices where type exists in schedules for the same id.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03877", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(type, status, amount, date)\n customers(date, amount, value, salary)\nTask: Find id from shipments where type appears in customers entries with matching code.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03878", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(name, status, type, salary)\n managers(type, salary, name, date)\nTask: Select code from orders where code exists in managers for the same level.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE code IN (\n SELECT code FROM managers AS mgr\n WHERE mgr.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "managers", "outer_alias": "ord", "inner_alias": "mgr", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03879", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(code, date, salary, status)\n regions(amount, name, date, value)\nTask: Find salary from schedules where a matching record exists in regions with the same code.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "salary", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03880", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(salary, code, date, name)\n products(name, id, code, status)\nTask: Retrieve id from customers whose type is found in products rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE type IN (\n SELECT type FROM products AS prod\n WHERE prod.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "products", "outer_alias": "cust", "inner_alias": "prod", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03881", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(id, amount, date, code)\n regions(salary, status, date, name)\nTask: Retrieve name from accounts with value above the COUNT(value) of regions rows sharing the same level.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE value > (\n SELECT COUNT(value) FROM regions AS rgn\n WHERE rgn.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "regions", "outer_alias": "acct", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03882", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(type, level, code, name)\n branches(level, status, name, type)\nTask: Select amount from regions where code exists in branches for the same status.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "branches", "outer_alias": "rgn", "inner_alias": "brc", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03883", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(code, id, status, level)\n regions(amount, date, value, name)\nTask: Find value from shipments where level appears in regions entries with matching status.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "regions", "outer_alias": "shp", "inner_alias": "rgn", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03884", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(salary, value, type, amount)\n items(status, level, type, value)\nTask: Find amount from requests where a matching record exists in items with the same status.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "amount", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03885", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(salary, status, level, value)\n transactions(salary, status, name, id)\nTask: Find id from requests where a matching record exists in transactions with the same code.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "id", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03886", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(id, salary, date, type)\n managers(value, level, salary, id)\nTask: Find amount from schedules where a matching record exists in managers with the same status.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "amount", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03887", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(date, amount, type, status)\n employees(level, id, name, value)\nTask: Find value from orders where a matching record exists in employees with the same code.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03888", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(salary, name, value, type)\n departments(salary, name, id, date)\nTask: Find salary from products where a matching record exists in departments with the same code.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "departments", "outer_alias": "prod", "inner_alias": "dept", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03889", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(salary, status, type, level)\n products(name, level, code, status)\nTask: Find name from orders where a matching record exists in products with the same type.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "products", "outer_alias": "ord", "inner_alias": "prod", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03890", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(value, level, amount, id)\n invoices(code, type, id, level)\nTask: Select amount from items where type exists in invoices for the same type.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "invoices", "outer_alias": "lne", "inner_alias": "inv", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03891", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(salary, amount, code, value)\n products(code, status, value, level)\nTask: Retrieve code from departments with salary above the SUM(amount) of products rows sharing the same level.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE salary > (\n SELECT SUM(amount) FROM products AS prod\n WHERE prod.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "products", "outer_alias": "dept", "inner_alias": "prod", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03892", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(name, value, salary, date)\n branches(id, amount, value, code)\nTask: Retrieve amount from products that have at least one corresponding entry in branches sharing the same id.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "branches", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03893", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(date, value, name, type)\n schedules(level, salary, code, id)\nTask: Find code from transactions where salary exceeds the total salary from schedules for the same id.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE salary > (\n SELECT SUM(salary) FROM schedules AS schd\n WHERE schd.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "schedules", "outer_alias": "txn", "inner_alias": "schd", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03894", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(level, status, date, amount)\n orders(name, date, type, id)\nTask: Find id from regions where a matching record exists in orders with the same type.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "orders", "outer_alias": "rgn", "inner_alias": "ord", "proj_col": "id", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03895", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(code, date, name, salary)\n shipments(id, status, type, value)\nTask: Find name from products where a matching record exists in shipments with the same level.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "shipments", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03896", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(level, date, amount, status)\n employees(salary, type, amount, code)\nTask: Find amount from regions where a matching record exists in employees with the same type.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "amount", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03897", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(name, code, value, date)\n shipments(id, amount, level, name)\nTask: Find value from requests where a matching record exists in shipments with the same type.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "shipments", "outer_alias": "ordr", "inner_alias": "shp", "proj_col": "value", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03898", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(name, level, status, value)\n requests(level, salary, value, date)\nTask: Retrieve amount from accounts whose type is found in requests rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "requests", "outer_alias": "acct", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03899", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(level, name, id, amount)\n projects(level, name, value, amount)\nTask: Find code from shipments where salary exceeds the average amount from projects for the same id.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE salary > (\n SELECT AVG(amount) FROM projects AS prj\n WHERE prj.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "projects", "outer_alias": "shp", "inner_alias": "prj", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03900", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(date, amount, level, id)\n requests(name, value, type, id)\nTask: Retrieve amount from staff that have at least one corresponding entry in requests sharing the same status.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "requests", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03901", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(code, amount, status, salary)\n managers(level, type, code, id)\nTask: Find value from transactions where value exceeds the count of amount from managers for the same code.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE value > (\n SELECT COUNT(amount) FROM managers AS mgr\n WHERE mgr.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "managers", "outer_alias": "txn", "inner_alias": "mgr", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03902", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(salary, id, amount, code)\n categories(amount, value, level, status)\nTask: Retrieve amount from invoices that have at least one corresponding entry in categories sharing the same status.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "categories", "outer_alias": "inv", "inner_alias": "catg", "proj_col": "amount", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03903", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(date, status, level, code)\n invoices(code, status, value, amount)\nTask: Find value from categories where amount exceeds the average salary from invoices for the same level.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE amount > (\n SELECT AVG(salary) FROM invoices AS inv\n WHERE inv.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "invoices", "outer_alias": "catg", "inner_alias": "inv", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03904", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(level, id, name, amount)\n shipments(date, type, salary, status)\nTask: Find amount from items where id appears in shipments entries with matching status.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE id IN (\n SELECT id FROM shipments AS shp\n WHERE shp.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "shipments", "outer_alias": "lne", "inner_alias": "shp", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03905", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(status, date, id, value)\n products(amount, level, type, salary)\nTask: Find salary from sales where amount exceeds the total amount from products for the same id.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE amount > (\n SELECT SUM(amount) FROM products AS prod\n WHERE prod.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "products", "outer_alias": "sale", "inner_alias": "prod", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03906", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(value, level, salary, id)\n categories(type, level, status, name)\nTask: Find salary from items where value exceeds the average amount from categories for the same status.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE value > (\n SELECT AVG(amount) FROM categories AS catg\n WHERE catg.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03907", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(id, salary, value, type)\n shipments(code, name, value, salary)\nTask: Retrieve id from invoices that have at least one corresponding entry in shipments sharing the same status.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03908", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(date, id, amount, name)\n transactions(value, name, level, code)\nTask: Retrieve code from categories with amount above the MIN(amount) of transactions rows sharing the same id.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE amount > (\n SELECT MIN(amount) FROM transactions AS txn\n WHERE txn.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "transactions", "outer_alias": "catg", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03909", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(date, status, id, value)\n shipments(id, salary, date, status)\nTask: Retrieve id from categories with value above the MAX(value) of shipments rows sharing the same code.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE value > (\n SELECT MAX(value) FROM shipments AS shp\n WHERE shp.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "shipments", "outer_alias": "catg", "inner_alias": "shp", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03910", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(id, salary, name, value)\n transactions(id, amount, value, type)\nTask: Retrieve code from invoices that have at least one corresponding entry in transactions sharing the same id.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "transactions", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03911", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(type, status, value, date)\n items(amount, type, status, date)\nTask: Find name from categories where a matching record exists in items with the same status.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "name", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03912", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(level, salary, type, name)\n transactions(status, type, value, name)\nTask: Find amount from tasks where salary exceeds the total amount from transactions for the same code.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE salary > (\n SELECT SUM(amount) FROM transactions AS txn\n WHERE txn.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "transactions", "outer_alias": "tsk", "inner_alias": "txn", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03913", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(salary, level, status, date)\n staff(level, type, value, amount)\nTask: Find id from sales where a matching record exists in staff with the same code.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "staff", "outer_alias": "sale", "inner_alias": "empl", "proj_col": "id", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03914", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(code, salary, id, type)\n managers(level, date, id, code)\nTask: Find id from sales where a matching record exists in managers with the same code.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "id", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03915", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(status, salary, code, name)\n accounts(date, value, name, type)\nTask: Find amount from shipments where amount exceeds the average salary from accounts for the same type.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE amount > (\n SELECT AVG(salary) FROM accounts AS acct\n WHERE acct.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "accounts", "outer_alias": "shp", "inner_alias": "acct", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03916", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(value, code, id, date)\n regions(amount, value, code, level)\nTask: Retrieve salary from categories whose type is found in regions rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE type IN (\n SELECT type FROM regions AS rgn\n WHERE rgn.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03917", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(status, type, amount, level)\n transactions(type, amount, value, code)\nTask: Retrieve id from projects that have at least one corresponding entry in transactions sharing the same level.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "transactions", "outer_alias": "prj", "inner_alias": "txn", "proj_col": "id", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03918", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(code, amount, date, id)\n branches(amount, status, level, id)\nTask: Select amount from transactions where id exists in branches for the same code.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM branches AS brc\n WHERE brc.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "branches", "outer_alias": "txn", "inner_alias": "brc", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03919", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(name, status, level, code)\n items(amount, code, value, type)\nTask: Find id from categories where a matching record exists in items with the same id.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "id", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03920", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(status, level, type, name)\n customers(salary, level, value, name)\nTask: Find value from departments where a matching record exists in customers with the same type.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "customers", "outer_alias": "dept", "inner_alias": "cust", "proj_col": "value", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03921", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(salary, level, status, code)\n staff(level, amount, salary, date)\nTask: Find amount from transactions where a matching record exists in staff with the same status.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "staff", "outer_alias": "txn", "inner_alias": "empl", "proj_col": "amount", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03922", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(amount, level, value, salary)\n orders(code, value, id, status)\nTask: Select value from staff where level exists in orders for the same level.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "orders", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03923", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(value, code, amount, name)\n orders(name, amount, type, salary)\nTask: Find value from invoices where a matching record exists in orders with the same type.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "orders", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03924", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(value, salary, name, date)\n tasks(value, level, status, type)\nTask: Find code from managers where value exceeds the average amount from tasks for the same id.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM tasks AS tsk\n WHERE tsk.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "tasks", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03925", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(date, amount, name, id)\n transactions(status, date, salary, amount)\nTask: Find amount from regions where salary exceeds the total salary from transactions for the same id.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE salary > (\n SELECT SUM(salary) FROM transactions AS txn\n WHERE txn.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "transactions", "outer_alias": "rgn", "inner_alias": "txn", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03926", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(name, level, amount, salary)\n regions(amount, value, status, id)\nTask: Select id from customers where level exists in regions for the same id.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03927", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(id, name, value, date)\n shipments(date, id, level, name)\nTask: Select name from staff where type exists in shipments for the same level.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE type IN (\n SELECT type FROM shipments AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03928", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(code, amount, value, salary)\n projects(level, type, amount, salary)\nTask: Retrieve value from staff whose id is found in projects rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "projects", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03929", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(status, value, name, amount)\n tasks(id, code, level, date)\nTask: Retrieve amount from staff whose id is found in tasks rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE id IN (\n SELECT id FROM tasks AS tsk\n WHERE tsk.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "tasks", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03930", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(name, level, id, amount)\n employees(id, name, level, code)\nTask: Find salary from projects where a matching record exists in employees with the same type.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "employees", "outer_alias": "prj", "inner_alias": "emp", "proj_col": "salary", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03931", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(code, amount, name, type)\n employees(type, name, status, date)\nTask: Find value from projects where id appears in employees entries with matching code.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "employees", "outer_alias": "prj", "inner_alias": "emp", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03932", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(status, type, name, value)\n regions(value, code, name, level)\nTask: Find code from staff where a matching record exists in regions with the same level.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "regions", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03933", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(amount, value, id, status)\n regions(id, level, value, date)\nTask: Find id from transactions where amount exceeds the average salary from regions for the same status.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE amount > (\n SELECT AVG(salary) FROM regions AS rgn\n WHERE rgn.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03934", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(amount, status, level, code)\n shipments(value, id, code, date)\nTask: Retrieve name from schedules that have at least one corresponding entry in shipments sharing the same id.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "shipments", "outer_alias": "schd", "inner_alias": "shp", "proj_col": "name", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03935", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(salary, type, value, id)\n categories(salary, name, value, level)\nTask: Retrieve value from projects with value above the AVG(amount) of categories rows sharing the same code.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE value > (\n SELECT AVG(amount) FROM categories AS catg\n WHERE catg.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "categories", "outer_alias": "prj", "inner_alias": "catg", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03936", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(amount, level, name, date)\n projects(code, level, value, salary)\nTask: Find name from invoices where a matching record exists in projects with the same id.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "projects", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03937", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(code, id, date, salary)\n staff(status, type, name, code)\nTask: Select code from requests where id exists in staff for the same level.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE id IN (\n SELECT id FROM staff AS empl\n WHERE empl.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "staff", "outer_alias": "ordr", "inner_alias": "empl", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03938", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(code, amount, id, level)\n branches(name, type, status, id)\nTask: Find value from shipments where amount exceeds the maximum value from branches for the same code.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE amount > (\n SELECT MAX(value) FROM branches AS brc\n WHERE brc.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "branches", "outer_alias": "shp", "inner_alias": "brc", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03939", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(level, code, date, type)\n orders(salary, value, amount, type)\nTask: Retrieve name from categories that have at least one corresponding entry in orders sharing the same code.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "orders", "outer_alias": "catg", "inner_alias": "ord", "proj_col": "name", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03940", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(salary, name, status, value)\n customers(name, date, salary, type)\nTask: Find salary from items where amount exceeds the maximum salary from customers for the same level.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE amount > (\n SELECT MAX(salary) FROM customers AS cust\n WHERE cust.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "customers", "outer_alias": "lne", "inner_alias": "cust", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03941", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(date, name, level, value)\n products(amount, value, level, id)\nTask: Retrieve code from requests whose status is found in products rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "products", "outer_alias": "ordr", "inner_alias": "prod", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03942", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(code, date, amount, salary)\n transactions(amount, status, type, id)\nTask: Select value from tasks where code exists in transactions for the same level.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "transactions", "outer_alias": "tsk", "inner_alias": "txn", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03943", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(date, value, name, salary)\n managers(status, amount, value, date)\nTask: Retrieve salary from branches that have at least one corresponding entry in managers sharing the same status.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "salary", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03944", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(amount, id, date, value)\n departments(id, date, level, code)\nTask: Find amount from orders where status appears in departments entries with matching level.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE status IN (\n SELECT status FROM departments AS dept\n WHERE dept.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "departments", "outer_alias": "ord", "inner_alias": "dept", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03945", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(level, code, date, value)\n regions(status, code, value, type)\nTask: Find id from items where a matching record exists in regions with the same level.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "regions", "outer_alias": "lne", "inner_alias": "rgn", "proj_col": "id", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03946", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(level, amount, type, id)\n transactions(value, date, code, id)\nTask: Retrieve value from sales whose code is found in transactions rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "transactions", "outer_alias": "sale", "inner_alias": "txn", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03947", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(id, status, type, value)\n items(type, name, salary, date)\nTask: Retrieve salary from tasks with amount above the MIN(salary) of items rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE amount > (\n SELECT MIN(salary) FROM items AS lne\n WHERE lne.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "items", "outer_alias": "tsk", "inner_alias": "lne", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03948", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(name, code, salary, type)\n shipments(level, status, name, value)\nTask: Select name from regions where status exists in shipments for the same status.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE status IN (\n SELECT status FROM shipments AS shp\n WHERE shp.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "shipments", "outer_alias": "rgn", "inner_alias": "shp", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03949", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(status, code, type, value)\n customers(date, level, status, type)\nTask: Retrieve id from sales that have at least one corresponding entry in customers sharing the same type.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "customers", "outer_alias": "sale", "inner_alias": "cust", "proj_col": "id", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03950", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(status, value, level, salary)\n customers(date, status, code, salary)\nTask: Find id from regions where a matching record exists in customers with the same level.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "customers", "outer_alias": "rgn", "inner_alias": "cust", "proj_col": "id", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03951", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(amount, id, salary, code)\n products(salary, value, date, level)\nTask: Retrieve name from categories whose status is found in products rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "products", "outer_alias": "catg", "inner_alias": "prod", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03952", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(code, date, id, level)\n products(value, status, id, salary)\nTask: Find value from employees where a matching record exists in products with the same type.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "value", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03953", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(type, level, status, amount)\n customers(value, code, status, type)\nTask: Select salary from tasks where level exists in customers for the same status.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "customers", "outer_alias": "tsk", "inner_alias": "cust", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03954", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(date, code, salary, amount)\n invoices(status, level, name, id)\nTask: Find id from accounts where a matching record exists in invoices with the same status.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "invoices", "outer_alias": "acct", "inner_alias": "inv", "proj_col": "id", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03955", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(amount, level, code, id)\n staff(value, salary, amount, status)\nTask: Retrieve code from customers that have at least one corresponding entry in staff sharing the same level.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "staff", "outer_alias": "cust", "inner_alias": "empl", "proj_col": "code", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03956", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, salary, value, amount)\n departments(code, salary, id, level)\nTask: Find id from shipments where code appears in departments entries with matching level.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "departments", "outer_alias": "shp", "inner_alias": "dept", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_03957", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(name, id, date, type)\n transactions(salary, id, type, code)\nTask: Retrieve amount from categories that have at least one corresponding entry in transactions sharing the same status.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "transactions", "outer_alias": "catg", "inner_alias": "txn", "proj_col": "amount", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03958", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(type, code, value, id)\n sales(level, status, id, value)\nTask: Retrieve name from branches whose code is found in sales rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE code IN (\n SELECT code FROM sales AS sale\n WHERE sale.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "sales", "outer_alias": "brc", "inner_alias": "sale", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03959", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(status, id, level, type)\n invoices(salary, date, id, value)\nTask: Retrieve id from items whose code is found in invoices rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE code IN (\n SELECT code FROM invoices AS inv\n WHERE inv.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "invoices", "outer_alias": "lne", "inner_alias": "inv", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03960", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(name, id, amount, value)\n requests(status, id, date, code)\nTask: Select salary from customers where level exists in requests for the same level.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE level IN (\n SELECT level FROM requests AS ordr\n WHERE ordr.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "requests", "outer_alias": "cust", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03961", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(name, value, date, id)\n transactions(salary, type, level, status)\nTask: Find name from tasks where value exceeds the average value from transactions for the same level.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE value > (\n SELECT AVG(value) FROM transactions AS txn\n WHERE txn.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "transactions", "outer_alias": "tsk", "inner_alias": "txn", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03962", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(code, status, id, date)\n schedules(name, type, date, amount)\nTask: Retrieve value from managers that have at least one corresponding entry in schedules sharing the same status.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "schedules", "outer_alias": "mgr", "inner_alias": "schd", "proj_col": "value", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03963", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(amount, salary, name, value)\n regions(salary, type, amount, code)\nTask: Find name from sales where a matching record exists in regions with the same id.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "regions", "outer_alias": "sale", "inner_alias": "rgn", "proj_col": "name", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03964", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(level, code, salary, name)\n managers(level, code, id, date)\nTask: Find id from tasks where a matching record exists in managers with the same type.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "managers", "outer_alias": "tsk", "inner_alias": "mgr", "proj_col": "id", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03965", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(name, salary, amount, date)\n items(amount, name, status, level)\nTask: Find name from employees where amount exceeds the count of salary from items for the same status.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE amount > (\n SELECT COUNT(salary) FROM items AS lne\n WHERE lne.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "items", "outer_alias": "emp", "inner_alias": "lne", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03966", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(code, status, value, type)\n accounts(name, amount, level, id)\nTask: Retrieve code from staff with amount above the COUNT(amount) of accounts rows sharing the same level.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE amount > (\n SELECT COUNT(amount) FROM accounts AS acct\n WHERE acct.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "accounts", "outer_alias": "empl", "inner_alias": "acct", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03967", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(value, type, amount, salary)\n staff(id, code, name, amount)\nTask: Retrieve id from invoices with salary above the MAX(value) of staff rows sharing the same code.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE salary > (\n SELECT MAX(value) FROM staff AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "staff", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03968", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(amount, date, status, salary)\n items(code, salary, type, id)\nTask: Retrieve amount from customers that have at least one corresponding entry in items sharing the same id.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "items", "outer_alias": "cust", "inner_alias": "lne", "proj_col": "amount", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03969", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(type, salary, date, value)\n tasks(level, date, type, name)\nTask: Find amount from departments where amount exceeds the minimum salary from tasks for the same id.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE amount > (\n SELECT MIN(salary) FROM tasks AS tsk\n WHERE tsk.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03970", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(amount, value, date, status)\n staff(status, amount, id, type)\nTask: Find amount from regions where a matching record exists in staff with the same status.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "staff", "outer_alias": "rgn", "inner_alias": "empl", "proj_col": "amount", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03971", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(status, date, level, code)\n orders(salary, type, status, name)\nTask: Retrieve amount from branches that have at least one corresponding entry in orders sharing the same type.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "orders", "outer_alias": "brc", "inner_alias": "ord", "proj_col": "amount", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03972", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(value, status, amount, level)\n tasks(type, name, id, date)\nTask: Find code from transactions where a matching record exists in tasks with the same level.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "tasks", "outer_alias": "txn", "inner_alias": "tsk", "proj_col": "code", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03973", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(date, value, type, code)\n managers(amount, code, type, id)\nTask: Retrieve value from employees whose status is found in managers rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03974", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(salary, amount, code, level)\n accounts(status, type, date, value)\nTask: Find amount from requests where salary exceeds the total amount from accounts for the same level.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE salary > (\n SELECT SUM(amount) FROM accounts AS acct\n WHERE acct.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "accounts", "outer_alias": "ordr", "inner_alias": "acct", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03975", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(name, level, id, code)\n projects(type, value, code, id)\nTask: Find id from tasks where amount exceeds the total amount from projects for the same id.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE amount > (\n SELECT SUM(amount) FROM projects AS prj\n WHERE prj.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "projects", "outer_alias": "tsk", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03976", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(value, id, type, amount)\n shipments(code, date, type, salary)\nTask: Find id from departments where salary exceeds the count of value from shipments for the same id.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE salary > (\n SELECT COUNT(value) FROM shipments AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "shipments", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03977", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(value, amount, date, name)\n items(type, value, code, salary)\nTask: Find salary from projects where value exceeds the maximum amount from items for the same type.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE value > (\n SELECT MAX(amount) FROM items AS lne\n WHERE lne.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "items", "outer_alias": "prj", "inner_alias": "lne", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03978", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(id, salary, value, type)\n regions(level, amount, date, salary)\nTask: Select name from schedules where code exists in regions for the same id.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03979", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(code, level, salary, id)\n categories(type, date, id, status)\nTask: Retrieve amount from orders with value above the SUM(value) of categories rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE value > (\n SELECT SUM(value) FROM categories AS catg\n WHERE catg.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "categories", "outer_alias": "ord", "inner_alias": "catg", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03980", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(salary, amount, status, type)\n tasks(salary, value, level, id)\nTask: Find code from staff where amount exceeds the maximum value from tasks for the same type.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE amount > (\n SELECT MAX(value) FROM tasks AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "tasks", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_03981", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(id, level, status, type)\n managers(status, date, value, type)\nTask: Find id from regions where level appears in managers entries with matching type.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE level IN (\n SELECT level FROM managers AS mgr\n WHERE mgr.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "managers", "outer_alias": "rgn", "inner_alias": "mgr", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_03982", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(code, level, amount, name)\n projects(name, status, level, code)\nTask: Select value from branches where id exists in projects for the same level.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "projects", "outer_alias": "brc", "inner_alias": "prj", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_03983", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(date, type, id, name)\n staff(date, code, level, status)\nTask: Find value from requests where status appears in staff entries with matching status.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "staff", "outer_alias": "ordr", "inner_alias": "empl", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_03984", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(value, type, level, id)\n schedules(status, amount, date, id)\nTask: Find code from items where amount exceeds the maximum salary from schedules for the same level.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE amount > (\n SELECT MAX(salary) FROM schedules AS schd\n WHERE schd.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "schedules", "outer_alias": "lne", "inner_alias": "schd", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03985", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(date, id, salary, name)\n sales(name, salary, code, type)\nTask: Find salary from employees where salary exceeds the maximum value from sales for the same code.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE salary > (\n SELECT MAX(value) FROM sales AS sale\n WHERE sale.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "sales", "outer_alias": "emp", "inner_alias": "sale", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03986", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(id, type, name, value)\n orders(type, level, date, salary)\nTask: Retrieve amount from schedules that have at least one corresponding entry in orders sharing the same code.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "orders", "outer_alias": "schd", "inner_alias": "ord", "proj_col": "amount", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03987", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(date, code, salary, name)\n categories(level, id, name, status)\nTask: Retrieve value from departments with amount above the SUM(amount) of categories rows sharing the same code.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE amount > (\n SELECT SUM(amount) FROM categories AS catg\n WHERE catg.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "categories", "outer_alias": "dept", "inner_alias": "catg", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03988", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(salary, status, name, date)\n departments(value, status, salary, level)\nTask: Find code from products where value exceeds the count of salary from departments for the same id.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE value > (\n SELECT COUNT(salary) FROM departments AS dept\n WHERE dept.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "departments", "outer_alias": "prod", "inner_alias": "dept", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03989", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(amount, level, id, date)\n invoices(amount, name, level, salary)\nTask: Find value from employees where amount exceeds the count of salary from invoices for the same type.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE amount > (\n SELECT COUNT(salary) FROM invoices AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03990", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(id, level, status, amount)\n employees(value, id, salary, name)\nTask: Find code from projects where value exceeds the total amount from employees for the same status.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE value > (\n SELECT SUM(amount) FROM employees AS emp\n WHERE emp.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "employees", "outer_alias": "prj", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03991", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(date, type, status, code)\n customers(type, name, salary, code)\nTask: Retrieve name from projects with value above the AVG(amount) of customers rows sharing the same code.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE value > (\n SELECT AVG(amount) FROM customers AS cust\n WHERE cust.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "customers", "outer_alias": "prj", "inner_alias": "cust", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_03992", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(value, salary, status, level)\n requests(id, salary, date, amount)\nTask: Find salary from items where a matching record exists in requests with the same type.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "requests", "outer_alias": "lne", "inner_alias": "ordr", "proj_col": "salary", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03993", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(level, status, salary, date)\n requests(name, value, level, salary)\nTask: Retrieve amount from products that have at least one corresponding entry in requests sharing the same level.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "requests", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03994", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(name, salary, type, amount)\n departments(name, value, date, level)\nTask: Find salary from tasks where a matching record exists in departments with the same status.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "departments", "outer_alias": "tsk", "inner_alias": "dept", "proj_col": "salary", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_03995", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(code, name, type, level)\n categories(code, level, amount, date)\nTask: Retrieve amount from invoices whose level is found in categories rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "categories", "outer_alias": "inv", "inner_alias": "catg", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03996", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(amount, id, salary, type)\n branches(code, level, date, amount)\nTask: Retrieve amount from items whose level is found in branches rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_03997", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(salary, code, level, status)\n regions(value, type, amount, salary)\nTask: Retrieve code from products whose code is found in regions rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_03998", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(amount, code, type, value)\n invoices(amount, date, name, status)\nTask: Select value from schedules where code exists in invoices for the same id.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM invoices AS inv\n WHERE inv.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "invoices", "outer_alias": "schd", "inner_alias": "inv", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_03999", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(status, level, type, value)\n shipments(status, amount, value, name)\nTask: Retrieve name from invoices with salary above the SUM(value) of shipments rows sharing the same type.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE salary > (\n SELECT SUM(value) FROM shipments AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04000", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(type, status, level, salary)\n sales(date, salary, status, code)\nTask: Find value from accounts where level appears in sales entries with matching code.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM sales AS sale\n WHERE sale.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "sales", "outer_alias": "acct", "inner_alias": "sale", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04001", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(type, id, salary, code)\n managers(salary, date, code, amount)\nTask: Retrieve amount from staff whose status is found in managers rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "managers", "outer_alias": "empl", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04002", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(date, status, id, name)\n employees(value, id, level, date)\nTask: Retrieve salary from invoices that have at least one corresponding entry in employees sharing the same level.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "employees", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "salary", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04003", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(status, amount, date, name)\n categories(code, status, amount, id)\nTask: Select salary from schedules where code exists in categories for the same id.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM categories AS catg\n WHERE catg.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "categories", "outer_alias": "schd", "inner_alias": "catg", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04004", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(level, value, status, date)\n transactions(code, name, salary, type)\nTask: Find code from projects where a matching record exists in transactions with the same code.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "transactions", "outer_alias": "prj", "inner_alias": "txn", "proj_col": "code", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04005", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(amount, value, name, code)\n shipments(type, id, salary, amount)\nTask: Find salary from orders where a matching record exists in shipments with the same type.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "shipments", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04006", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(name, level, id, code)\n orders(level, id, name, code)\nTask: Find id from shipments where status appears in orders entries with matching id.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE status IN (\n SELECT status FROM orders AS ord\n WHERE ord.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "orders", "outer_alias": "shp", "inner_alias": "ord", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04007", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(name, value, date, amount)\n accounts(date, code, id, type)\nTask: Retrieve salary from projects that have at least one corresponding entry in accounts sharing the same type.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "accounts", "outer_alias": "prj", "inner_alias": "acct", "proj_col": "salary", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04008", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(salary, date, amount, code)\n transactions(type, value, name, id)\nTask: Retrieve code from requests whose type is found in transactions rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE type IN (\n SELECT type FROM transactions AS txn\n WHERE txn.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04009", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(status, salary, name, level)\n invoices(level, date, amount, type)\nTask: Find code from employees where value exceeds the total salary from invoices for the same type.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE value > (\n SELECT SUM(salary) FROM invoices AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04010", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(name, level, type, id)\n regions(id, date, level, amount)\nTask: Retrieve name from customers with value above the SUM(amount) of regions rows sharing the same type.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE value > (\n SELECT SUM(amount) FROM regions AS rgn\n WHERE rgn.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04011", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(status, salary, date, level)\n shipments(value, amount, level, type)\nTask: Retrieve id from transactions with salary above the AVG(value) of shipments rows sharing the same status.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE salary > (\n SELECT AVG(value) FROM shipments AS shp\n WHERE shp.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "shipments", "outer_alias": "txn", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04012", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(date, type, name, salary)\n items(salary, value, id, amount)\nTask: Find name from employees where salary exceeds the count of amount from items for the same code.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE salary > (\n SELECT COUNT(amount) FROM items AS lne\n WHERE lne.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "items", "outer_alias": "emp", "inner_alias": "lne", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04013", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(value, type, level, id)\n items(date, code, salary, level)\nTask: Retrieve value from categories with salary above the AVG(amount) of items rows sharing the same id.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE salary > (\n SELECT AVG(amount) FROM items AS lne\n WHERE lne.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04014", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(type, id, salary, amount)\n tasks(code, value, date, id)\nTask: Find code from items where salary exceeds the count of salary from tasks for the same id.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE salary > (\n SELECT COUNT(salary) FROM tasks AS tsk\n WHERE tsk.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "tasks", "outer_alias": "lne", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04015", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(status, code, level, id)\n categories(code, status, level, type)\nTask: Find value from accounts where id appears in categories entries with matching status.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "categories", "outer_alias": "acct", "inner_alias": "catg", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04016", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(id, level, value, type)\n managers(amount, status, salary, value)\nTask: Retrieve id from categories whose type is found in managers rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "managers", "outer_alias": "catg", "inner_alias": "mgr", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04017", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(level, salary, id, status)\n products(name, id, code, value)\nTask: Find amount from schedules where code appears in products entries with matching status.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM products AS prod\n WHERE prod.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "products", "outer_alias": "schd", "inner_alias": "prod", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04018", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(salary, value, level, amount)\n regions(name, code, value, level)\nTask: Retrieve name from transactions that have at least one corresponding entry in regions sharing the same id.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "name", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04019", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(status, id, name, amount)\n tasks(date, code, salary, type)\nTask: Find name from products where a matching record exists in tasks with the same code.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "tasks", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04020", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(amount, salary, level, value)\n branches(value, type, name, status)\nTask: Find amount from products where value exceeds the maximum salary from branches for the same level.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE value > (\n SELECT MAX(salary) FROM branches AS brc\n WHERE brc.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "branches", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04021", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(salary, level, name, id)\n branches(level, name, code, date)\nTask: Find name from invoices where a matching record exists in branches with the same code.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "branches", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04022", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(date, status, value, name)\n categories(code, level, name, value)\nTask: Retrieve salary from customers whose type is found in categories rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE type IN (\n SELECT type FROM categories AS catg\n WHERE catg.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "categories", "outer_alias": "cust", "inner_alias": "catg", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04023", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(value, id, level, code)\n tasks(value, type, id, name)\nTask: Find id from branches where id appears in tasks entries with matching status.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE id IN (\n SELECT id FROM tasks AS tsk\n WHERE tsk.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04024", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(value, id, type, code)\n sales(value, status, code, amount)\nTask: Retrieve code from invoices that have at least one corresponding entry in sales sharing the same code.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "sales", "outer_alias": "inv", "inner_alias": "sale", "proj_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04025", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(type, code, date, status)\n shipments(code, value, salary, id)\nTask: Find value from branches where salary exceeds the average salary from shipments for the same id.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE salary > (\n SELECT AVG(salary) FROM shipments AS shp\n WHERE shp.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "shipments", "outer_alias": "brc", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04026", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(amount, id, value, salary)\n shipments(salary, code, status, name)\nTask: Retrieve id from departments that have at least one corresponding entry in shipments sharing the same type.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "shipments", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04027", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(code, value, status, name)\n tasks(name, level, id, status)\nTask: Retrieve salary from items with value above the MIN(value) of tasks rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE value > (\n SELECT MIN(value) FROM tasks AS tsk\n WHERE tsk.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "tasks", "outer_alias": "lne", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04028", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(value, id, date, name)\n staff(salary, value, type, status)\nTask: Find salary from employees where a matching record exists in staff with the same status.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "staff", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "salary", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04029", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(date, id, value, level)\n accounts(code, level, type, value)\nTask: Find salary from branches where a matching record exists in accounts with the same type.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "accounts", "outer_alias": "brc", "inner_alias": "acct", "proj_col": "salary", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04030", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(status, value, type, amount)\n invoices(name, type, value, code)\nTask: Select amount from employees where code exists in invoices for the same status.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE code IN (\n SELECT code FROM invoices AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04031", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(id, code, status, name)\n schedules(id, salary, status, name)\nTask: Select name from tasks where level exists in schedules for the same type.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM schedules AS schd\n WHERE schd.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "schedules", "outer_alias": "tsk", "inner_alias": "schd", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04032", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(name, salary, id, date)\n requests(name, code, salary, amount)\nTask: Retrieve id from regions whose type is found in requests rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "requests", "outer_alias": "rgn", "inner_alias": "ordr", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04033", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(type, level, id, amount)\n staff(status, id, name, code)\nTask: Retrieve id from products that have at least one corresponding entry in staff sharing the same code.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04034", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(date, level, salary, code)\n projects(id, name, date, amount)\nTask: Retrieve amount from managers that have at least one corresponding entry in projects sharing the same code.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "projects", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04035", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(level, date, code, name)\n items(salary, type, date, status)\nTask: Retrieve name from employees that have at least one corresponding entry in items sharing the same status.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "items", "outer_alias": "emp", "inner_alias": "lne", "proj_col": "name", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04036", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(type, value, id, name)\n tasks(type, name, amount, salary)\nTask: Retrieve id from accounts whose type is found in tasks rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "tasks", "outer_alias": "acct", "inner_alias": "tsk", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04037", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(level, id, type, value)\n regions(date, salary, id, code)\nTask: Retrieve amount from sales that have at least one corresponding entry in regions sharing the same level.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "regions", "outer_alias": "sale", "inner_alias": "rgn", "proj_col": "amount", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04038", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(salary, level, value, name)\n staff(level, code, name, type)\nTask: Retrieve salary from managers with salary above the AVG(amount) of staff rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE salary > (\n SELECT AVG(amount) FROM staff AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "staff", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04039", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(level, status, id, salary)\n projects(status, date, salary, value)\nTask: Retrieve name from items that have at least one corresponding entry in projects sharing the same level.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "projects", "outer_alias": "lne", "inner_alias": "prj", "proj_col": "name", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04040", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(date, type, name, value)\n accounts(amount, date, code, name)\nTask: Find code from branches where level appears in accounts entries with matching code.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE level IN (\n SELECT level FROM accounts AS acct\n WHERE acct.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "accounts", "outer_alias": "brc", "inner_alias": "acct", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04041", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(salary, value, type, status)\n items(salary, amount, id, status)\nTask: Retrieve code from categories with salary above the MAX(amount) of items rows sharing the same id.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE salary > (\n SELECT MAX(amount) FROM items AS lne\n WHERE lne.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04042", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(name, date, type, value)\n products(code, id, level, value)\nTask: Find salary from managers where a matching record exists in products with the same code.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "salary", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04043", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(level, id, name, date)\n items(name, status, amount, id)\nTask: Find code from schedules where a matching record exists in items with the same status.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "code", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04044", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(name, value, level, salary)\n regions(level, value, code, status)\nTask: Select name from accounts where type exists in regions for the same id.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE type IN (\n SELECT type FROM regions AS rgn\n WHERE rgn.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "regions", "outer_alias": "acct", "inner_alias": "rgn", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04045", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(date, type, code, id)\n regions(type, level, amount, id)\nTask: Retrieve id from customers with value above the MAX(amount) of regions rows sharing the same type.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE value > (\n SELECT MAX(amount) FROM regions AS rgn\n WHERE rgn.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04046", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(salary, level, name, id)\n regions(salary, status, amount, date)\nTask: Find value from sales where a matching record exists in regions with the same status.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "regions", "outer_alias": "sale", "inner_alias": "rgn", "proj_col": "value", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04047", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(date, id, type, amount)\n shipments(value, level, status, amount)\nTask: Select amount from products where code exists in shipments for the same id.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "shipments", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04048", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(salary, type, id, value)\n branches(level, code, salary, date)\nTask: Retrieve code from categories whose level is found in branches rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04049", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(date, value, status, level)\n regions(name, level, value, id)\nTask: Select salary from branches where id exists in regions for the same level.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "regions", "outer_alias": "brc", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04050", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(code, id, salary, amount)\n shipments(date, name, level, type)\nTask: Find id from products where a matching record exists in shipments with the same level.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "shipments", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04051", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(amount, salary, code, level)\n items(amount, salary, name, date)\nTask: Retrieve name from transactions with amount above the MIN(value) of items rows sharing the same type.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE amount > (\n SELECT MIN(value) FROM items AS lne\n WHERE lne.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "items", "outer_alias": "txn", "inner_alias": "lne", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04052", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(amount, type, name, status)\n departments(salary, name, value, type)\nTask: Retrieve name from branches that have at least one corresponding entry in departments sharing the same status.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "departments", "outer_alias": "brc", "inner_alias": "dept", "proj_col": "name", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04053", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(status, amount, type, salary)\n products(name, level, value, amount)\nTask: Find salary from invoices where a matching record exists in products with the same status.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "products", "outer_alias": "inv", "inner_alias": "prod", "proj_col": "salary", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04054", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(status, level, value, type)\n regions(salary, id, value, date)\nTask: Select code from managers where type exists in regions for the same code.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM regions AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "regions", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04055", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(level, value, amount, salary)\n products(code, value, salary, type)\nTask: Retrieve salary from branches that have at least one corresponding entry in products sharing the same id.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "products", "outer_alias": "brc", "inner_alias": "prod", "proj_col": "salary", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04056", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(amount, status, level, value)\n sales(level, amount, date, status)\nTask: Retrieve value from categories whose status is found in sales rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "sales", "outer_alias": "catg", "inner_alias": "sale", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04057", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(code, status, level, amount)\n employees(status, value, level, code)\nTask: Retrieve id from items that have at least one corresponding entry in employees sharing the same code.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "id", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04058", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(id, name, status, date)\n regions(value, date, amount, code)\nTask: Retrieve value from customers with value above the SUM(value) of regions rows sharing the same type.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE value > (\n SELECT SUM(value) FROM regions AS rgn\n WHERE rgn.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04059", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(value, id, level, salary)\n shipments(code, status, amount, name)\nTask: Find name from requests where salary exceeds the count of value from shipments for the same level.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE salary > (\n SELECT COUNT(value) FROM shipments AS shp\n WHERE shp.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "shipments", "outer_alias": "ordr", "inner_alias": "shp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04060", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(date, type, level, status)\n requests(date, status, value, amount)\nTask: Find code from categories where a matching record exists in requests with the same level.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "requests", "outer_alias": "catg", "inner_alias": "ordr", "proj_col": "code", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04061", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(amount, code, salary, name)\n regions(code, date, salary, level)\nTask: Retrieve id from transactions with salary above the AVG(amount) of regions rows sharing the same status.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE salary > (\n SELECT AVG(amount) FROM regions AS rgn\n WHERE rgn.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04062", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(id, salary, code, type)\n accounts(code, name, salary, status)\nTask: Find value from customers where a matching record exists in accounts with the same status.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "accounts", "outer_alias": "cust", "inner_alias": "acct", "proj_col": "value", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04063", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(type, name, value, salary)\n departments(date, level, amount, code)\nTask: Find name from regions where a matching record exists in departments with the same type.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "departments", "outer_alias": "rgn", "inner_alias": "dept", "proj_col": "name", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04064", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(salary, amount, code, status)\n invoices(salary, type, name, date)\nTask: Retrieve amount from categories with amount above the SUM(amount) of invoices rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE amount > (\n SELECT SUM(amount) FROM invoices AS inv\n WHERE inv.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "invoices", "outer_alias": "catg", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04065", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(id, value, code, status)\n managers(level, salary, code, name)\nTask: Find name from schedules where a matching record exists in managers with the same id.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "name", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04066", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(level, salary, id, status)\n staff(amount, value, salary, type)\nTask: Find salary from departments where a matching record exists in staff with the same code.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04067", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(date, status, type, value)\n departments(amount, id, code, salary)\nTask: Find amount from customers where type appears in departments entries with matching id.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE type IN (\n SELECT type FROM departments AS dept\n WHERE dept.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "departments", "outer_alias": "cust", "inner_alias": "dept", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04068", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(date, level, type, value)\n tasks(value, name, type, code)\nTask: Select name from staff where status exists in tasks for the same code.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE status IN (\n SELECT status FROM tasks AS tsk\n WHERE tsk.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "tasks", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04069", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(value, type, level, salary)\n categories(level, type, date, value)\nTask: Find name from employees where a matching record exists in categories with the same type.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "categories", "outer_alias": "emp", "inner_alias": "catg", "proj_col": "name", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04070", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(name, salary, id, code)\n staff(amount, level, type, status)\nTask: Retrieve amount from transactions that have at least one corresponding entry in staff sharing the same type.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "staff", "outer_alias": "txn", "inner_alias": "empl", "proj_col": "amount", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04071", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(value, date, type, status)\n tasks(date, value, level, type)\nTask: Retrieve amount from customers that have at least one corresponding entry in tasks sharing the same code.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "tasks", "outer_alias": "cust", "inner_alias": "tsk", "proj_col": "amount", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04072", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(name, value, status, date)\n tasks(value, level, name, type)\nTask: Select value from products where level exists in tasks for the same code.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE level IN (\n SELECT level FROM tasks AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "tasks", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04073", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(salary, id, status, code)\n customers(amount, id, name, level)\nTask: Find code from departments where value exceeds the maximum salary from customers for the same type.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE value > (\n SELECT MAX(salary) FROM customers AS cust\n WHERE cust.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "customers", "outer_alias": "dept", "inner_alias": "cust", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04074", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(status, value, date, name)\n employees(name, salary, type, amount)\nTask: Retrieve name from schedules whose code is found in employees rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "employees", "outer_alias": "schd", "inner_alias": "emp", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04075", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(name, code, date, status)\n shipments(amount, value, level, name)\nTask: Find name from projects where salary exceeds the count of salary from shipments for the same code.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE salary > (\n SELECT COUNT(salary) FROM shipments AS shp\n WHERE shp.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "shipments", "outer_alias": "prj", "inner_alias": "shp", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04076", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(level, id, salary, value)\n employees(level, id, date, name)\nTask: Retrieve amount from sales that have at least one corresponding entry in employees sharing the same code.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "employees", "outer_alias": "sale", "inner_alias": "emp", "proj_col": "amount", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04077", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(id, type, status, level)\n employees(type, amount, salary, name)\nTask: Retrieve value from orders whose id is found in employees rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04078", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(status, date, name, value)\n employees(date, name, amount, value)\nTask: Find value from transactions where id appears in employees entries with matching code.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04079", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(code, id, date, amount)\n orders(level, status, id, name)\nTask: Retrieve id from branches with value above the MIN(value) of orders rows sharing the same code.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE value > (\n SELECT MIN(value) FROM orders AS ord\n WHERE ord.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "orders", "outer_alias": "brc", "inner_alias": "ord", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04080", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(salary, id, type, level)\n staff(name, date, level, code)\nTask: Find salary from products where a matching record exists in staff with the same type.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04081", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(id, status, value, level)\n shipments(date, salary, name, value)\nTask: Find value from customers where type appears in shipments entries with matching id.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE type IN (\n SELECT type FROM shipments AS shp\n WHERE shp.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "shipments", "outer_alias": "cust", "inner_alias": "shp", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04082", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(type, value, name, id)\n staff(salary, date, status, id)\nTask: Retrieve name from accounts with amount above the MAX(amount) of staff rows sharing the same id.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE amount > (\n SELECT MAX(amount) FROM staff AS empl\n WHERE empl.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04083", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(type, id, name, level)\n invoices(type, id, salary, status)\nTask: Find code from employees where amount exceeds the minimum amount from invoices for the same level.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE amount > (\n SELECT MIN(amount) FROM invoices AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04084", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(date, code, salary, amount)\n sales(code, date, type, status)\nTask: Select code from departments where status exists in sales for the same type.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "sales", "outer_alias": "dept", "inner_alias": "sale", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04085", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(name, salary, type, code)\n requests(salary, id, name, date)\nTask: Find salary from products where a matching record exists in requests with the same level.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "requests", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04086", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(salary, id, level, date)\n requests(value, date, status, amount)\nTask: Find value from products where code appears in requests entries with matching status.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "requests", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04087", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(date, salary, value, amount)\n regions(type, status, value, id)\nTask: Retrieve name from invoices with value above the AVG(salary) of regions rows sharing the same level.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE value > (\n SELECT AVG(salary) FROM regions AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "regions", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04088", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(code, id, date, type)\n accounts(code, id, name, status)\nTask: Find id from items where code appears in accounts entries with matching type.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "accounts", "outer_alias": "lne", "inner_alias": "acct", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04089", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(name, status, type, amount)\n branches(salary, amount, code, date)\nTask: Find value from schedules where salary exceeds the count of value from branches for the same level.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE salary > (\n SELECT COUNT(value) FROM branches AS brc\n WHERE brc.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "branches", "outer_alias": "schd", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04090", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(date, value, id, code)\n orders(status, type, code, amount)\nTask: Retrieve amount from categories whose level is found in orders rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "orders", "outer_alias": "catg", "inner_alias": "ord", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04091", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(amount, name, status, level)\n accounts(level, status, id, code)\nTask: Find name from requests where a matching record exists in accounts with the same status.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "accounts", "outer_alias": "ordr", "inner_alias": "acct", "proj_col": "name", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04092", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(id, type, amount, level)\n accounts(salary, id, type, status)\nTask: Find amount from departments where level appears in accounts entries with matching type.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE level IN (\n SELECT level FROM accounts AS acct\n WHERE acct.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "accounts", "outer_alias": "dept", "inner_alias": "acct", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04093", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(amount, value, date, salary)\n managers(name, date, id, value)\nTask: Retrieve code from schedules whose type is found in managers rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "managers", "outer_alias": "schd", "inner_alias": "mgr", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04094", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(amount, code, type, id)\n employees(code, level, value, status)\nTask: Find salary from categories where a matching record exists in employees with the same code.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "employees", "outer_alias": "catg", "inner_alias": "emp", "proj_col": "salary", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04095", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(level, type, salary, amount)\n schedules(code, level, status, date)\nTask: Retrieve id from customers with value above the MAX(value) of schedules rows sharing the same status.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE value > (\n SELECT MAX(value) FROM schedules AS schd\n WHERE schd.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "schedules", "outer_alias": "cust", "inner_alias": "schd", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04096", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(type, value, amount, status)\n orders(status, code, amount, name)\nTask: Find id from products where a matching record exists in orders with the same level.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "orders", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04097", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(status, date, level, id)\n products(salary, level, status, type)\nTask: Retrieve amount from departments with salary above the MAX(value) of products rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE salary > (\n SELECT MAX(value) FROM products AS prod\n WHERE prod.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "products", "outer_alias": "dept", "inner_alias": "prod", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04098", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(name, status, date, value)\n regions(value, name, salary, status)\nTask: Retrieve value from schedules with value above the COUNT(amount) of regions rows sharing the same type.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE value > (\n SELECT COUNT(amount) FROM regions AS rgn\n WHERE rgn.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04099", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(id, amount, level, name)\n projects(date, id, level, type)\nTask: Find code from requests where a matching record exists in projects with the same level.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "projects", "outer_alias": "ordr", "inner_alias": "prj", "proj_col": "code", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04100", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, name, amount, value)\n managers(status, level, id, date)\nTask: Find name from shipments where code appears in managers entries with matching status.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM managers AS mgr\n WHERE mgr.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "managers", "outer_alias": "shp", "inner_alias": "mgr", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04101", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(value, salary, status, date)\n projects(date, name, amount, type)\nTask: Find name from sales where level appears in projects entries with matching level.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "projects", "outer_alias": "sale", "inner_alias": "prj", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04102", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(code, value, id, type)\n shipments(status, code, date, id)\nTask: Find amount from orders where value exceeds the total salary from shipments for the same status.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE value > (\n SELECT SUM(salary) FROM shipments AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "shipments", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04103", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(status, type, name, id)\n accounts(salary, level, id, type)\nTask: Find code from items where type appears in accounts entries with matching level.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "accounts", "outer_alias": "lne", "inner_alias": "acct", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04104", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(date, code, type, name)\n customers(level, date, salary, id)\nTask: Retrieve salary from accounts that have at least one corresponding entry in customers sharing the same code.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "customers", "outer_alias": "acct", "inner_alias": "cust", "proj_col": "salary", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04105", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(id, code, level, status)\n branches(value, salary, name, level)\nTask: Retrieve amount from customers with salary above the MIN(amount) of branches rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE salary > (\n SELECT MIN(amount) FROM branches AS brc\n WHERE brc.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "branches", "outer_alias": "cust", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04106", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(name, id, value, status)\n shipments(status, salary, date, code)\nTask: Find name from orders where a matching record exists in shipments with the same level.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "shipments", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "name", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04107", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(amount, name, id, date)\n projects(id, date, code, name)\nTask: Retrieve id from regions with amount above the MIN(value) of projects rows sharing the same id.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE amount > (\n SELECT MIN(value) FROM projects AS prj\n WHERE prj.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "projects", "outer_alias": "rgn", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04108", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(code, salary, id, status)\n items(name, id, level, code)\nTask: Select name from schedules where type exists in items for the same code.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04109", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(name, amount, salary, status)\n requests(amount, level, value, id)\nTask: Find name from projects where level appears in requests entries with matching id.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE level IN (\n SELECT level FROM requests AS ordr\n WHERE ordr.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04110", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(amount, date, level, type)\n accounts(salary, type, date, level)\nTask: Select name from transactions where type exists in accounts for the same type.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "accounts", "outer_alias": "txn", "inner_alias": "acct", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04111", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(level, date, id, code)\n accounts(salary, level, date, code)\nTask: Retrieve id from orders that have at least one corresponding entry in accounts sharing the same type.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "accounts", "outer_alias": "ord", "inner_alias": "acct", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04112", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(id, amount, level, status)\n items(name, code, status, date)\nTask: Find id from employees where a matching record exists in items with the same code.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "items", "outer_alias": "emp", "inner_alias": "lne", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04113", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(status, value, level, id)\n regions(level, value, salary, type)\nTask: Find value from accounts where a matching record exists in regions with the same type.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "regions", "outer_alias": "acct", "inner_alias": "rgn", "proj_col": "value", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04114", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(name, id, value, status)\n regions(name, date, value, code)\nTask: Retrieve code from branches whose id is found in regions rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE id IN (\n SELECT id FROM regions AS rgn\n WHERE rgn.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "regions", "outer_alias": "brc", "inner_alias": "rgn", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04115", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(amount, value, status, name)\n requests(status, level, name, type)\nTask: Select name from accounts where type exists in requests for the same type.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "requests", "outer_alias": "acct", "inner_alias": "ordr", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04116", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(code, date, name, type)\n customers(type, salary, status, id)\nTask: Find amount from invoices where code appears in customers entries with matching id.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "customers", "outer_alias": "inv", "inner_alias": "cust", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04117", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(amount, type, code, status)\n accounts(salary, amount, id, code)\nTask: Retrieve name from requests whose type is found in accounts rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "accounts", "outer_alias": "ordr", "inner_alias": "acct", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04118", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(name, amount, type, level)\n projects(value, level, amount, id)\nTask: Retrieve amount from tasks with amount above the MIN(salary) of projects rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE amount > (\n SELECT MIN(salary) FROM projects AS prj\n WHERE prj.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "projects", "outer_alias": "tsk", "inner_alias": "prj", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04119", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(code, salary, name, level)\n shipments(type, name, code, status)\nTask: Retrieve amount from employees with amount above the MAX(salary) of shipments rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE amount > (\n SELECT MAX(salary) FROM shipments AS shp\n WHERE shp.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "shipments", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04120", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(type, amount, salary, id)\n employees(level, value, code, name)\nTask: Find amount from transactions where a matching record exists in employees with the same status.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "amount", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04121", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(status, code, type, name)\n staff(name, amount, salary, value)\nTask: Select name from products where level exists in staff for the same status.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04122", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(name, amount, level, id)\n tasks(level, status, date, code)\nTask: Retrieve amount from schedules whose type is found in tasks rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "tasks", "outer_alias": "schd", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04123", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(type, value, salary, amount)\n employees(value, type, date, code)\nTask: Retrieve id from transactions that have at least one corresponding entry in employees sharing the same level.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "employees", "outer_alias": "txn", "inner_alias": "emp", "proj_col": "id", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04124", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(code, name, id, value)\n managers(value, id, amount, type)\nTask: Retrieve name from staff that have at least one corresponding entry in managers sharing the same type.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "managers", "outer_alias": "empl", "inner_alias": "mgr", "proj_col": "name", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04125", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(type, amount, value, salary)\n items(name, salary, amount, code)\nTask: Find amount from departments where value exceeds the count of value from items for the same type.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE value > (\n SELECT COUNT(value) FROM items AS lne\n WHERE lne.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "items", "outer_alias": "dept", "inner_alias": "lne", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04126", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(value, type, name, salary)\n products(name, date, type, level)\nTask: Find amount from sales where id appears in products entries with matching level.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "products", "outer_alias": "sale", "inner_alias": "prod", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04127", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(date, code, id, status)\n accounts(value, type, date, status)\nTask: Find amount from requests where a matching record exists in accounts with the same status.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "accounts", "outer_alias": "ordr", "inner_alias": "acct", "proj_col": "amount", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04128", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(code, type, name, level)\n staff(code, id, status, salary)\nTask: Retrieve value from managers with amount above the SUM(amount) of staff rows sharing the same id.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE amount > (\n SELECT SUM(amount) FROM staff AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "staff", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04129", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(value, level, amount, type)\n products(salary, date, level, value)\nTask: Select name from shipments where code exists in products for the same type.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM products AS prod\n WHERE prod.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04130", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(salary, status, code, id)\n managers(salary, id, level, code)\nTask: Find salary from branches where code appears in managers entries with matching type.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE code IN (\n SELECT code FROM managers AS mgr\n WHERE mgr.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04131", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(salary, type, level, amount)\n branches(type, level, code, salary)\nTask: Find salary from shipments where a matching record exists in branches with the same code.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "branches", "outer_alias": "shp", "inner_alias": "brc", "proj_col": "salary", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04132", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(id, amount, code, type)\n departments(code, type, name, status)\nTask: Find salary from regions where type appears in departments entries with matching status.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM departments AS dept\n WHERE dept.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "departments", "outer_alias": "rgn", "inner_alias": "dept", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04133", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(status, name, id, date)\n accounts(id, type, date, value)\nTask: Find salary from regions where a matching record exists in accounts with the same code.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "accounts", "outer_alias": "rgn", "inner_alias": "acct", "proj_col": "salary", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04134", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(status, type, id, value)\n branches(type, code, status, date)\nTask: Find code from accounts where value exceeds the maximum value from branches for the same type.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE value > (\n SELECT MAX(value) FROM branches AS brc\n WHERE brc.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "branches", "outer_alias": "acct", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04135", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(type, code, level, value)\n managers(id, level, value, amount)\nTask: Find name from items where a matching record exists in managers with the same id.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "managers", "outer_alias": "lne", "inner_alias": "mgr", "proj_col": "name", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04136", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(amount, type, id, name)\n regions(salary, date, code, type)\nTask: Retrieve id from projects that have at least one corresponding entry in regions sharing the same level.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "regions", "outer_alias": "prj", "inner_alias": "rgn", "proj_col": "id", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04137", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(code, level, type, salary)\n employees(id, type, value, status)\nTask: Retrieve amount from sales whose type is found in employees rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "employees", "outer_alias": "sale", "inner_alias": "emp", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04138", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(salary, level, amount, name)\n invoices(salary, date, amount, type)\nTask: Retrieve name from products that have at least one corresponding entry in invoices sharing the same id.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "invoices", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04139", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(level, id, date, type)\n products(code, id, status, amount)\nTask: Retrieve code from customers whose type is found in products rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE type IN (\n SELECT type FROM products AS prod\n WHERE prod.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "products", "outer_alias": "cust", "inner_alias": "prod", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04140", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(level, value, name, status)\n regions(status, value, name, level)\nTask: Find code from staff where a matching record exists in regions with the same code.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "regions", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04141", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(salary, type, amount, code)\n sales(amount, value, salary, code)\nTask: Retrieve name from departments that have at least one corresponding entry in sales sharing the same level.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "sales", "outer_alias": "dept", "inner_alias": "sale", "proj_col": "name", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04142", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(amount, status, salary, code)\n categories(amount, name, salary, id)\nTask: Retrieve id from shipments that have at least one corresponding entry in categories sharing the same code.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "categories", "outer_alias": "shp", "inner_alias": "catg", "proj_col": "id", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04143", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(status, id, amount, code)\n regions(amount, level, id, status)\nTask: Find code from sales where amount exceeds the total value from regions for the same id.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE amount > (\n SELECT SUM(value) FROM regions AS rgn\n WHERE rgn.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "regions", "outer_alias": "sale", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04144", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(salary, date, value, id)\n branches(type, status, id, code)\nTask: Select salary from staff where level exists in branches for the same type.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE level IN (\n SELECT level FROM branches AS brc\n WHERE brc.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "branches", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04145", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(name, salary, code, level)\n departments(id, name, salary, value)\nTask: Find id from items where amount exceeds the total salary from departments for the same status.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE amount > (\n SELECT SUM(salary) FROM departments AS dept\n WHERE dept.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "departments", "outer_alias": "lne", "inner_alias": "dept", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04146", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(date, id, value, name)\n shipments(type, name, status, amount)\nTask: Select name from accounts where code exists in shipments for the same code.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "shipments", "outer_alias": "acct", "inner_alias": "shp", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04147", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(value, level, id, type)\n invoices(salary, name, status, date)\nTask: Find salary from requests where status appears in invoices entries with matching code.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM invoices AS inv\n WHERE inv.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "invoices", "outer_alias": "ordr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04148", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(name, salary, date, code)\n transactions(salary, type, level, id)\nTask: Find name from orders where a matching record exists in transactions with the same type.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04149", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(status, level, amount, code)\n transactions(status, value, date, type)\nTask: Find value from staff where a matching record exists in transactions with the same code.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "transactions", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04150", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(salary, level, value, name)\n transactions(salary, level, id, amount)\nTask: Retrieve amount from branches whose level is found in transactions rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "transactions", "outer_alias": "brc", "inner_alias": "txn", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04151", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(salary, date, type, name)\n branches(status, value, name, code)\nTask: Retrieve name from regions that have at least one corresponding entry in branches sharing the same level.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "branches", "outer_alias": "rgn", "inner_alias": "brc", "proj_col": "name", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04152", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(amount, status, date, name)\n products(salary, id, type, level)\nTask: Retrieve id from schedules that have at least one corresponding entry in products sharing the same type.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "products", "outer_alias": "schd", "inner_alias": "prod", "proj_col": "id", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04153", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(salary, id, name, date)\n invoices(salary, amount, type, name)\nTask: Find value from shipments where status appears in invoices entries with matching level.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE status IN (\n SELECT status FROM invoices AS inv\n WHERE inv.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "invoices", "outer_alias": "shp", "inner_alias": "inv", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04154", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(salary, amount, id, level)\n products(name, code, amount, id)\nTask: Find id from invoices where status appears in products entries with matching type.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "products", "outer_alias": "inv", "inner_alias": "prod", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04155", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(name, salary, amount, value)\n employees(id, salary, name, date)\nTask: Retrieve value from departments whose code is found in employees rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "employees", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04156", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(value, id, date, type)\n branches(salary, value, date, id)\nTask: Retrieve amount from items that have at least one corresponding entry in branches sharing the same code.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "amount", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04157", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(name, value, status, code)\n projects(status, id, amount, level)\nTask: Retrieve name from sales with salary above the MIN(value) of projects rows sharing the same id.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE salary > (\n SELECT MIN(value) FROM projects AS prj\n WHERE prj.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "projects", "outer_alias": "sale", "inner_alias": "prj", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04158", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(salary, amount, id, date)\n branches(status, type, level, amount)\nTask: Retrieve salary from items that have at least one corresponding entry in branches sharing the same id.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "salary", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04159", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(amount, type, salary, value)\n accounts(value, code, type, status)\nTask: Find code from departments where status appears in accounts entries with matching level.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE status IN (\n SELECT status FROM accounts AS acct\n WHERE acct.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "accounts", "outer_alias": "dept", "inner_alias": "acct", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04160", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(id, type, name, amount)\n managers(status, salary, name, code)\nTask: Retrieve amount from tasks whose id is found in managers rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "managers", "outer_alias": "tsk", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04161", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(id, salary, name, level)\n accounts(amount, level, salary, value)\nTask: Retrieve name from products whose code is found in accounts rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "accounts", "outer_alias": "prod", "inner_alias": "acct", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04162", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(value, code, type, amount)\n requests(amount, name, code, salary)\nTask: Select salary from projects where type exists in requests for the same id.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04163", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(name, id, value, code)\n staff(code, id, name, amount)\nTask: Select amount from regions where status exists in staff for the same type.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "staff", "outer_alias": "rgn", "inner_alias": "empl", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04164", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(id, date, amount, name)\n orders(value, id, level, date)\nTask: Find value from departments where a matching record exists in orders with the same type.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "orders", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "value", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04165", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(name, date, id, type)\n shipments(id, level, value, amount)\nTask: Retrieve salary from employees with salary above the MIN(salary) of shipments rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE salary > (\n SELECT MIN(salary) FROM shipments AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "shipments", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04166", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(date, name, amount, level)\n accounts(status, name, id, level)\nTask: Select value from invoices where level exists in accounts for the same code.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE level IN (\n SELECT level FROM accounts AS acct\n WHERE acct.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04167", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(id, name, code, type)\n products(code, id, amount, level)\nTask: Retrieve salary from projects with salary above the MIN(amount) of products rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE salary > (\n SELECT MIN(amount) FROM products AS prod\n WHERE prod.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "products", "outer_alias": "prj", "inner_alias": "prod", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04168", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(name, status, value, type)\n employees(value, type, status, salary)\nTask: Find amount from orders where value exceeds the maximum value from employees for the same level.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE value > (\n SELECT MAX(value) FROM employees AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04169", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(amount, type, status, value)\n branches(value, amount, name, id)\nTask: Select name from orders where id exists in branches for the same level.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE id IN (\n SELECT id FROM branches AS brc\n WHERE brc.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "branches", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04170", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(status, amount, id, date)\n branches(date, amount, type, code)\nTask: Find value from accounts where a matching record exists in branches with the same code.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "branches", "outer_alias": "acct", "inner_alias": "brc", "proj_col": "value", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04171", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(type, status, level, value)\n tasks(code, level, date, salary)\nTask: Find name from invoices where type appears in tasks entries with matching id.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04172", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(date, name, type, id)\n branches(status, salary, value, code)\nTask: Retrieve code from orders that have at least one corresponding entry in branches sharing the same id.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "branches", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04173", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(amount, value, type, code)\n projects(value, level, code, status)\nTask: Select name from orders where type exists in projects for the same code.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE type IN (\n SELECT type FROM projects AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "projects", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04174", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(type, value, status, amount)\n sales(date, amount, name, salary)\nTask: Retrieve code from schedules that have at least one corresponding entry in sales sharing the same id.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "sales", "outer_alias": "schd", "inner_alias": "sale", "proj_col": "code", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04175", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(name, date, type, id)\n regions(date, status, value, name)\nTask: Find code from customers where amount exceeds the average salary from regions for the same type.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE amount > (\n SELECT AVG(salary) FROM regions AS rgn\n WHERE rgn.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04176", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(salary, type, level, amount)\n projects(value, date, level, status)\nTask: Find amount from departments where type appears in projects entries with matching status.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE type IN (\n SELECT type FROM projects AS prj\n WHERE prj.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "projects", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04177", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(type, date, id, amount)\n staff(code, name, value, date)\nTask: Retrieve value from schedules that have at least one corresponding entry in staff sharing the same code.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "staff", "outer_alias": "schd", "inner_alias": "empl", "proj_col": "value", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04178", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(type, value, code, status)\n items(value, code, salary, type)\nTask: Retrieve value from schedules with value above the COUNT(amount) of items rows sharing the same code.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE value > (\n SELECT COUNT(amount) FROM items AS lne\n WHERE lne.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04179", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(name, type, date, status)\n departments(name, value, status, date)\nTask: Find value from branches where a matching record exists in departments with the same code.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "departments", "outer_alias": "brc", "inner_alias": "dept", "proj_col": "value", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04180", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(id, type, date, status)\n departments(value, amount, id, type)\nTask: Retrieve code from schedules whose status is found in departments rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE status IN (\n SELECT status FROM departments AS dept\n WHERE dept.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "departments", "outer_alias": "schd", "inner_alias": "dept", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04181", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(date, amount, salary, status)\n products(date, type, level, value)\nTask: Retrieve salary from regions whose code is found in products rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM products AS prod\n WHERE prod.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04182", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(date, code, status, amount)\n projects(level, status, type, value)\nTask: Retrieve value from customers that have at least one corresponding entry in projects sharing the same type.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "projects", "outer_alias": "cust", "inner_alias": "prj", "proj_col": "value", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04183", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(value, salary, level, type)\n employees(amount, date, id, salary)\nTask: Retrieve code from customers whose level is found in employees rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04184", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(type, date, status, id)\n products(amount, salary, status, level)\nTask: Retrieve id from customers that have at least one corresponding entry in products sharing the same level.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "products", "outer_alias": "cust", "inner_alias": "prod", "proj_col": "id", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04185", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(amount, date, id, salary)\n customers(code, status, value, level)\nTask: Find code from shipments where a matching record exists in customers with the same code.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "code", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04186", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(code, date, id, amount)\n regions(value, salary, status, code)\nTask: Retrieve id from transactions whose status is found in regions rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE status IN (\n SELECT status FROM regions AS rgn\n WHERE rgn.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04187", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(type, value, id, amount)\n transactions(date, name, amount, type)\nTask: Find amount from tasks where a matching record exists in transactions with the same level.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "transactions", "outer_alias": "tsk", "inner_alias": "txn", "proj_col": "amount", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04188", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(type, amount, level, status)\n employees(salary, level, id, date)\nTask: Find name from orders where salary exceeds the total value from employees for the same type.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE salary > (\n SELECT SUM(value) FROM employees AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04189", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(id, type, status, value)\n regions(type, value, code, salary)\nTask: Find code from products where code appears in regions entries with matching id.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04190", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(value, date, name, status)\n customers(code, value, status, name)\nTask: Retrieve salary from staff that have at least one corresponding entry in customers sharing the same code.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "customers", "outer_alias": "empl", "inner_alias": "cust", "proj_col": "salary", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04191", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(salary, status, value, code)\n managers(code, amount, status, value)\nTask: Find code from shipments where type appears in managers entries with matching type.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM managers AS mgr\n WHERE mgr.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "managers", "outer_alias": "shp", "inner_alias": "mgr", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04192", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(amount, status, code, name)\n accounts(date, type, salary, level)\nTask: Retrieve name from tasks with salary above the SUM(value) of accounts rows sharing the same code.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE salary > (\n SELECT SUM(value) FROM accounts AS acct\n WHERE acct.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "accounts", "outer_alias": "tsk", "inner_alias": "acct", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04193", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(id, salary, status, name)\n regions(amount, name, type, status)\nTask: Find code from categories where amount exceeds the maximum amount from regions for the same id.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE amount > (\n SELECT MAX(amount) FROM regions AS rgn\n WHERE rgn.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04194", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(date, code, value, amount)\n accounts(date, name, status, amount)\nTask: Retrieve code from invoices with salary above the MAX(value) of accounts rows sharing the same level.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE salary > (\n SELECT MAX(value) FROM accounts AS acct\n WHERE acct.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04195", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(level, date, value, code)\n tasks(date, value, name, type)\nTask: Find value from invoices where code appears in tasks entries with matching type.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE code IN (\n SELECT code FROM tasks AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04196", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(id, value, amount, name)\n transactions(type, id, level, salary)\nTask: Find name from schedules where value exceeds the total amount from transactions for the same level.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE value > (\n SELECT SUM(amount) FROM transactions AS txn\n WHERE txn.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "transactions", "outer_alias": "schd", "inner_alias": "txn", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04197", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(code, status, value, type)\n requests(value, level, type, salary)\nTask: Select value from tasks where level exists in requests for the same status.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE level IN (\n SELECT level FROM requests AS ordr\n WHERE ordr.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04198", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(status, type, amount, id)\n categories(code, level, amount, id)\nTask: Find salary from orders where amount exceeds the average amount from categories for the same status.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE amount > (\n SELECT AVG(amount) FROM categories AS catg\n WHERE catg.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "categories", "outer_alias": "ord", "inner_alias": "catg", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04199", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(date, amount, code, type)\n tasks(name, code, id, level)\nTask: Find amount from orders where a matching record exists in tasks with the same status.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "tasks", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "amount", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04200", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(status, type, name, code)\n shipments(type, date, id, name)\nTask: Find id from schedules where salary exceeds the total value from shipments for the same id.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE salary > (\n SELECT SUM(value) FROM shipments AS shp\n WHERE shp.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "shipments", "outer_alias": "schd", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04201", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(level, value, name, amount)\n projects(status, amount, level, value)\nTask: Retrieve salary from tasks with amount above the MAX(amount) of projects rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE amount > (\n SELECT MAX(amount) FROM projects AS prj\n WHERE prj.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "projects", "outer_alias": "tsk", "inner_alias": "prj", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04202", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(type, id, amount, status)\n branches(name, level, amount, date)\nTask: Find code from accounts where salary exceeds the minimum amount from branches for the same type.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE salary > (\n SELECT MIN(amount) FROM branches AS brc\n WHERE brc.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "branches", "outer_alias": "acct", "inner_alias": "brc", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04203", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(id, salary, name, level)\n managers(type, date, name, amount)\nTask: Find code from transactions where status appears in managers entries with matching level.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "managers", "outer_alias": "txn", "inner_alias": "mgr", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04204", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(status, type, date, level)\n staff(id, salary, name, level)\nTask: Find salary from items where status appears in staff entries with matching type.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "staff", "outer_alias": "lne", "inner_alias": "empl", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04205", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(date, id, value, code)\n products(level, type, date, status)\nTask: Find name from categories where a matching record exists in products with the same code.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "products", "outer_alias": "catg", "inner_alias": "prod", "proj_col": "name", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04206", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(value, level, amount, id)\n tasks(salary, value, id, date)\nTask: Find id from shipments where a matching record exists in tasks with the same status.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "id", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04207", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(id, code, type, salary)\n categories(id, salary, name, amount)\nTask: Retrieve id from staff whose level is found in categories rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "categories", "outer_alias": "empl", "inner_alias": "catg", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04208", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(salary, type, code, id)\n invoices(name, type, status, salary)\nTask: Find code from projects where status appears in invoices entries with matching status.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE status IN (\n SELECT status FROM invoices AS inv\n WHERE inv.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "invoices", "outer_alias": "prj", "inner_alias": "inv", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04209", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(salary, name, date, status)\n sales(value, salary, amount, id)\nTask: Select amount from products where level exists in sales for the same level.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE level IN (\n SELECT level FROM sales AS sale\n WHERE sale.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "sales", "outer_alias": "prod", "inner_alias": "sale", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04210", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(salary, value, type, status)\n invoices(value, type, code, id)\nTask: Find amount from transactions where a matching record exists in invoices with the same level.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "invoices", "outer_alias": "txn", "inner_alias": "inv", "proj_col": "amount", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04211", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(value, id, code, name)\n employees(id, code, status, name)\nTask: Retrieve amount from shipments whose type is found in employees rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "employees", "outer_alias": "shp", "inner_alias": "emp", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04212", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(level, salary, id, date)\n employees(type, amount, name, id)\nTask: Retrieve amount from orders that have at least one corresponding entry in employees sharing the same code.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "amount", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04213", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(level, id, type, salary)\n invoices(code, status, level, name)\nTask: Find value from employees where a matching record exists in invoices with the same status.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04214", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(value, id, status, salary)\n transactions(amount, salary, date, type)\nTask: Retrieve value from branches whose level is found in transactions rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "transactions", "outer_alias": "brc", "inner_alias": "txn", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04215", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(amount, level, code, type)\n accounts(type, status, code, date)\nTask: Retrieve id from branches whose type is found in accounts rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "accounts", "outer_alias": "brc", "inner_alias": "acct", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04216", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(salary, name, type, value)\n shipments(value, id, status, level)\nTask: Retrieve id from employees with amount above the COUNT(amount) of shipments rows sharing the same level.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM shipments AS shp\n WHERE shp.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "shipments", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04217", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(salary, type, amount, id)\n staff(id, code, date, salary)\nTask: Find amount from shipments where salary exceeds the total salary from staff for the same status.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE salary > (\n SELECT SUM(salary) FROM staff AS empl\n WHERE empl.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "staff", "outer_alias": "shp", "inner_alias": "empl", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04218", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(status, level, type, amount)\n invoices(level, value, amount, id)\nTask: Retrieve value from sales that have at least one corresponding entry in invoices sharing the same code.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "invoices", "outer_alias": "sale", "inner_alias": "inv", "proj_col": "value", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04219", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(date, status, amount, level)\n schedules(id, name, date, value)\nTask: Find salary from employees where amount exceeds the average amount from schedules for the same level.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE amount > (\n SELECT AVG(amount) FROM schedules AS schd\n WHERE schd.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "schedules", "outer_alias": "emp", "inner_alias": "schd", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04220", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(salary, date, amount, level)\n categories(value, name, date, amount)\nTask: Select code from requests where status exists in categories for the same type.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM categories AS catg\n WHERE catg.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "categories", "outer_alias": "ordr", "inner_alias": "catg", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04221", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(code, date, amount, status)\n schedules(id, level, code, amount)\nTask: Find amount from categories where a matching record exists in schedules with the same type.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "schedules", "outer_alias": "catg", "inner_alias": "schd", "proj_col": "amount", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04222", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(value, salary, name, level)\n items(name, id, level, value)\nTask: Find code from branches where salary exceeds the maximum amount from items for the same type.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE salary > (\n SELECT MAX(amount) FROM items AS lne\n WHERE lne.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "items", "outer_alias": "brc", "inner_alias": "lne", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04223", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(code, amount, status, salary)\n shipments(level, date, type, status)\nTask: Select id from regions where code exists in shipments for the same status.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "shipments", "outer_alias": "rgn", "inner_alias": "shp", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04224", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(status, id, name, value)\n regions(status, value, amount, name)\nTask: Find id from schedules where salary exceeds the average value from regions for the same level.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE salary > (\n SELECT AVG(value) FROM regions AS rgn\n WHERE rgn.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04225", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(salary, level, value, amount)\n regions(type, code, name, id)\nTask: Retrieve amount from branches whose code is found in regions rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "regions", "outer_alias": "brc", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04226", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(salary, date, id, amount)\n managers(salary, date, value, amount)\nTask: Retrieve code from items that have at least one corresponding entry in managers sharing the same id.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "managers", "outer_alias": "lne", "inner_alias": "mgr", "proj_col": "code", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04227", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(value, date, amount, type)\n employees(level, status, name, code)\nTask: Select salary from items where level exists in employees for the same code.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04228", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(status, type, level, amount)\n orders(id, value, type, code)\nTask: Find salary from requests where amount exceeds the count of amount from orders for the same level.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE amount > (\n SELECT COUNT(amount) FROM orders AS ord\n WHERE ord.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "orders", "outer_alias": "ordr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04229", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(type, salary, code, level)\n departments(type, name, date, value)\nTask: Select amount from transactions where level exists in departments for the same type.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "departments", "outer_alias": "txn", "inner_alias": "dept", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04230", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(code, level, date, salary)\n invoices(amount, type, level, status)\nTask: Find name from staff where amount exceeds the total amount from invoices for the same code.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE amount > (\n SELECT SUM(amount) FROM invoices AS inv\n WHERE inv.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "invoices", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04231", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(value, salary, name, date)\n products(name, status, code, level)\nTask: Select salary from transactions where type exists in products for the same level.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE type IN (\n SELECT type FROM products AS prod\n WHERE prod.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04232", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(value, code, status, type)\n categories(date, code, salary, value)\nTask: Find id from accounts where status appears in categories entries with matching type.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE status IN (\n SELECT status FROM categories AS catg\n WHERE catg.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "categories", "outer_alias": "acct", "inner_alias": "catg", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04233", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(value, salary, date, name)\n branches(date, level, code, amount)\nTask: Find code from tasks where amount exceeds the total value from branches for the same id.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE amount > (\n SELECT SUM(value) FROM branches AS brc\n WHERE brc.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "branches", "outer_alias": "tsk", "inner_alias": "brc", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04234", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(value, id, name, status)\n orders(salary, amount, value, name)\nTask: Find name from accounts where level appears in orders entries with matching level.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "orders", "outer_alias": "acct", "inner_alias": "ord", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04235", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(value, level, id, code)\n customers(level, date, status, amount)\nTask: Retrieve salary from sales whose type is found in customers rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE type IN (\n SELECT type FROM customers AS cust\n WHERE cust.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "customers", "outer_alias": "sale", "inner_alias": "cust", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04236", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(status, level, amount, name)\n products(salary, status, id, level)\nTask: Find salary from employees where amount exceeds the count of value from products for the same level.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE amount > (\n SELECT COUNT(value) FROM products AS prod\n WHERE prod.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04237", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(salary, code, value, level)\n customers(status, name, value, amount)\nTask: Find code from employees where code appears in customers entries with matching status.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "customers", "outer_alias": "emp", "inner_alias": "cust", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04238", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(value, amount, level, type)\n projects(code, salary, amount, level)\nTask: Find amount from invoices where a matching record exists in projects with the same level.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "projects", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "amount", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04239", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(date, amount, status, level)\n regions(id, date, status, amount)\nTask: Retrieve name from categories whose code is found in regions rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04240", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(code, amount, id, value)\n customers(code, salary, value, type)\nTask: Select id from accounts where id exists in customers for the same code.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM customers AS cust\n WHERE cust.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "customers", "outer_alias": "acct", "inner_alias": "cust", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04241", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(date, status, value, salary)\n products(date, value, level, status)\nTask: Find value from managers where value exceeds the count of amount from products for the same code.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE value > (\n SELECT COUNT(amount) FROM products AS prod\n WHERE prod.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04242", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(name, id, type, level)\n sales(id, amount, value, name)\nTask: Select code from items where id exists in sales for the same type.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE id IN (\n SELECT id FROM sales AS sale\n WHERE sale.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "sales", "outer_alias": "lne", "inner_alias": "sale", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04243", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(name, id, value, code)\n invoices(type, amount, name, id)\nTask: Retrieve id from sales with amount above the SUM(salary) of invoices rows sharing the same id.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE amount > (\n SELECT SUM(salary) FROM invoices AS inv\n WHERE inv.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "invoices", "outer_alias": "sale", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04244", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(id, level, code, date)\n transactions(code, date, value, salary)\nTask: Retrieve id from tasks with value above the COUNT(salary) of transactions rows sharing the same code.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE value > (\n SELECT COUNT(salary) FROM transactions AS txn\n WHERE txn.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "transactions", "outer_alias": "tsk", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04245", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(level, value, salary, type)\n requests(value, type, date, code)\nTask: Find salary from managers where code appears in requests entries with matching level.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04246", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(date, level, amount, id)\n employees(status, value, name, salary)\nTask: Retrieve amount from customers with amount above the MIN(amount) of employees rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE amount > (\n SELECT MIN(amount) FROM employees AS emp\n WHERE emp.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04247", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(value, status, date, salary)\n schedules(salary, date, name, value)\nTask: Select salary from accounts where level exists in schedules for the same id.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM schedules AS schd\n WHERE schd.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "schedules", "outer_alias": "acct", "inner_alias": "schd", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04248", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(code, name, value, type)\n products(level, id, status, code)\nTask: Find value from transactions where a matching record exists in products with the same code.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "value", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04249", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(salary, status, type, code)\n tasks(status, level, salary, type)\nTask: Find id from projects where value exceeds the average value from tasks for the same type.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE value > (\n SELECT AVG(value) FROM tasks AS tsk\n WHERE tsk.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "tasks", "outer_alias": "prj", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04250", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(value, name, date, id)\n accounts(status, salary, date, type)\nTask: Select id from shipments where id exists in accounts for the same level.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE id IN (\n SELECT id FROM accounts AS acct\n WHERE acct.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "accounts", "outer_alias": "shp", "inner_alias": "acct", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04251", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(id, code, amount, salary)\n customers(value, name, type, salary)\nTask: Retrieve salary from requests that have at least one corresponding entry in customers sharing the same id.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "customers", "outer_alias": "ordr", "inner_alias": "cust", "proj_col": "salary", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04252", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(date, amount, type, value)\n shipments(type, date, name, code)\nTask: Retrieve value from items with amount above the AVG(salary) of shipments rows sharing the same status.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE amount > (\n SELECT AVG(salary) FROM shipments AS shp\n WHERE shp.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "shipments", "outer_alias": "lne", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04253", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(amount, salary, name, id)\n invoices(date, id, type, name)\nTask: Find name from schedules where type appears in invoices entries with matching type.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "invoices", "outer_alias": "schd", "inner_alias": "inv", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04254", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(name, salary, id, code)\n requests(level, value, salary, date)\nTask: Retrieve value from schedules whose code is found in requests rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "requests", "outer_alias": "schd", "inner_alias": "ordr", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04255", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(level, salary, type, id)\n branches(salary, level, code, value)\nTask: Retrieve salary from customers with salary above the SUM(value) of branches rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE salary > (\n SELECT SUM(value) FROM branches AS brc\n WHERE brc.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "branches", "outer_alias": "cust", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04256", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(amount, status, date, salary)\n shipments(name, status, date, salary)\nTask: Find id from requests where status appears in shipments entries with matching code.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM shipments AS shp\n WHERE shp.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "shipments", "outer_alias": "ordr", "inner_alias": "shp", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04257", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(amount, value, level, code)\n requests(amount, status, level, name)\nTask: Retrieve value from sales that have at least one corresponding entry in requests sharing the same code.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "requests", "outer_alias": "sale", "inner_alias": "ordr", "proj_col": "value", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04258", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(type, status, value, date)\n requests(type, date, code, value)\nTask: Retrieve salary from employees that have at least one corresponding entry in requests sharing the same level.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "requests", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04259", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(date, amount, value, type)\n managers(date, amount, code, salary)\nTask: Retrieve id from projects whose id is found in managers rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "managers", "outer_alias": "prj", "inner_alias": "mgr", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04260", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(name, type, level, amount)\n accounts(amount, type, salary, date)\nTask: Find value from sales where a matching record exists in accounts with the same type.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "accounts", "outer_alias": "sale", "inner_alias": "acct", "proj_col": "value", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04261", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(status, level, type, id)\n orders(code, id, type, date)\nTask: Retrieve id from branches with value above the SUM(amount) of orders rows sharing the same status.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE value > (\n SELECT SUM(amount) FROM orders AS ord\n WHERE ord.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "orders", "outer_alias": "brc", "inner_alias": "ord", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04262", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(code, type, value, id)\n schedules(id, code, value, level)\nTask: Select salary from orders where type exists in schedules for the same level.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "schedules", "outer_alias": "ord", "inner_alias": "schd", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04263", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(code, status, level, type)\n categories(amount, date, type, level)\nTask: Retrieve id from schedules that have at least one corresponding entry in categories sharing the same status.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "categories", "outer_alias": "schd", "inner_alias": "catg", "proj_col": "id", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04264", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(id, code, salary, status)\n orders(code, date, type, amount)\nTask: Retrieve id from accounts whose level is found in orders rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "orders", "outer_alias": "acct", "inner_alias": "ord", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04265", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(status, date, id, level)\n shipments(code, level, salary, id)\nTask: Retrieve code from transactions with salary above the SUM(salary) of shipments rows sharing the same id.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE salary > (\n SELECT SUM(salary) FROM shipments AS shp\n WHERE shp.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "shipments", "outer_alias": "txn", "inner_alias": "shp", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04266", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(salary, value, type, name)\n employees(type, date, value, salary)\nTask: Retrieve name from departments with value above the COUNT(value) of employees rows sharing the same type.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE value > (\n SELECT COUNT(value) FROM employees AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "employees", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04267", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(salary, code, amount, type)\n staff(salary, code, id, level)\nTask: Find amount from departments where level appears in staff entries with matching type.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "staff", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04268", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(date, amount, status, name)\n employees(type, salary, level, id)\nTask: Find salary from accounts where amount exceeds the minimum salary from employees for the same id.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE amount > (\n SELECT MIN(salary) FROM employees AS emp\n WHERE emp.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "employees", "outer_alias": "acct", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04269", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(status, id, code, amount)\n shipments(status, type, id, value)\nTask: Retrieve value from staff with amount above the SUM(value) of shipments rows sharing the same level.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE amount > (\n SELECT SUM(value) FROM shipments AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04270", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(status, amount, type, value)\n products(amount, value, name, salary)\nTask: Find value from departments where value exceeds the count of value from products for the same level.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE value > (\n SELECT COUNT(value) FROM products AS prod\n WHERE prod.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "products", "outer_alias": "dept", "inner_alias": "prod", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04271", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(amount, status, id, salary)\n transactions(status, name, salary, date)\nTask: Retrieve value from regions with salary above the COUNT(value) of transactions rows sharing the same status.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE salary > (\n SELECT COUNT(value) FROM transactions AS txn\n WHERE txn.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "transactions", "outer_alias": "rgn", "inner_alias": "txn", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04272", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(type, amount, code, id)\n orders(code, level, salary, id)\nTask: Retrieve code from items with amount above the MAX(salary) of orders rows sharing the same id.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE amount > (\n SELECT MAX(salary) FROM orders AS ord\n WHERE ord.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "orders", "outer_alias": "lne", "inner_alias": "ord", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04273", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(level, amount, name, id)\n branches(type, id, level, code)\nTask: Find id from customers where a matching record exists in branches with the same level.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "branches", "outer_alias": "cust", "inner_alias": "brc", "proj_col": "id", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04274", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(value, status, code, id)\n branches(value, id, level, status)\nTask: Retrieve name from products that have at least one corresponding entry in branches sharing the same code.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "branches", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04275", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(date, value, level, code)\n categories(salary, code, type, value)\nTask: Select value from sales where id exists in categories for the same status.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE id IN (\n SELECT id FROM categories AS catg\n WHERE catg.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "categories", "outer_alias": "sale", "inner_alias": "catg", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04276", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(id, name, value, date)\n employees(type, value, amount, code)\nTask: Find salary from invoices where type appears in employees entries with matching code.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "employees", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04277", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(id, value, status, amount)\n orders(id, code, name, date)\nTask: Find amount from tasks where a matching record exists in orders with the same code.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "orders", "outer_alias": "tsk", "inner_alias": "ord", "proj_col": "amount", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04278", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(name, level, status, id)\n customers(name, code, value, type)\nTask: Retrieve value from products with salary above the SUM(value) of customers rows sharing the same id.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE salary > (\n SELECT SUM(value) FROM customers AS cust\n WHERE cust.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "customers", "outer_alias": "prod", "inner_alias": "cust", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04279", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(status, amount, date, name)\n schedules(date, salary, name, status)\nTask: Retrieve amount from departments that have at least one corresponding entry in schedules sharing the same status.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "schedules", "outer_alias": "dept", "inner_alias": "schd", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04280", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(value, status, level, salary)\n employees(name, level, salary, date)\nTask: Find code from sales where id appears in employees entries with matching status.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE id IN (\n SELECT id FROM employees AS emp\n WHERE emp.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "employees", "outer_alias": "sale", "inner_alias": "emp", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04281", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(id, date, level, value)\n items(value, amount, date, code)\nTask: Find name from sales where a matching record exists in items with the same id.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "items", "outer_alias": "sale", "inner_alias": "lne", "proj_col": "name", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04282", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(date, salary, amount, type)\n shipments(level, value, date, name)\nTask: Retrieve salary from regions that have at least one corresponding entry in shipments sharing the same type.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "shipments", "outer_alias": "rgn", "inner_alias": "shp", "proj_col": "salary", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04283", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(code, amount, salary, id)\n staff(date, type, status, salary)\nTask: Retrieve id from employees whose type is found in staff rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "staff", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04284", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(code, salary, date, type)\n tasks(status, name, type, code)\nTask: Retrieve id from invoices whose type is found in tasks rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04285", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(name, date, salary, level)\n projects(id, value, date, name)\nTask: Retrieve value from items with salary above the MAX(amount) of projects rows sharing the same type.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE salary > (\n SELECT MAX(amount) FROM projects AS prj\n WHERE prj.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "projects", "outer_alias": "lne", "inner_alias": "prj", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04286", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(name, code, id, date)\n managers(level, amount, value, type)\nTask: Find value from projects where amount exceeds the maximum value from managers for the same level.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE amount > (\n SELECT MAX(value) FROM managers AS mgr\n WHERE mgr.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "managers", "outer_alias": "prj", "inner_alias": "mgr", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04287", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(id, salary, type, value)\n projects(amount, id, value, level)\nTask: Find code from requests where id appears in projects entries with matching level.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "projects", "outer_alias": "ordr", "inner_alias": "prj", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04288", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(amount, name, level, id)\n shipments(level, salary, date, id)\nTask: Find code from sales where value exceeds the maximum amount from shipments for the same level.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE value > (\n SELECT MAX(amount) FROM shipments AS shp\n WHERE shp.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "shipments", "outer_alias": "sale", "inner_alias": "shp", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04289", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(date, name, value, code)\n projects(id, code, date, salary)\nTask: Retrieve id from employees whose id is found in projects rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "projects", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04290", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(id, name, status, value)\n categories(level, name, code, type)\nTask: Find value from tasks where amount exceeds the minimum amount from categories for the same type.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE amount > (\n SELECT MIN(amount) FROM categories AS catg\n WHERE catg.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "categories", "outer_alias": "tsk", "inner_alias": "catg", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04291", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(amount, value, code, name)\n products(value, level, amount, salary)\nTask: Retrieve id from schedules with value above the MAX(value) of products rows sharing the same code.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE value > (\n SELECT MAX(value) FROM products AS prod\n WHERE prod.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "products", "outer_alias": "schd", "inner_alias": "prod", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04292", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(amount, salary, level, type)\n orders(date, name, code, amount)\nTask: Find salary from departments where value exceeds the maximum salary from orders for the same status.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE value > (\n SELECT MAX(salary) FROM orders AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "orders", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04293", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(type, id, salary, amount)\n branches(level, name, id, type)\nTask: Retrieve id from categories that have at least one corresponding entry in branches sharing the same status.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "id", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04294", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(type, value, name, code)\n orders(amount, date, salary, id)\nTask: Retrieve code from regions that have at least one corresponding entry in orders sharing the same type.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "orders", "outer_alias": "rgn", "inner_alias": "ord", "proj_col": "code", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04295", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(date, id, salary, name)\n staff(value, date, id, amount)\nTask: Retrieve code from regions with amount above the AVG(amount) of staff rows sharing the same status.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE amount > (\n SELECT AVG(amount) FROM staff AS empl\n WHERE empl.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "staff", "outer_alias": "rgn", "inner_alias": "empl", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04296", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(code, type, id, value)\n orders(date, level, type, code)\nTask: Find id from items where salary exceeds the minimum salary from orders for the same type.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE salary > (\n SELECT MIN(salary) FROM orders AS ord\n WHERE ord.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "orders", "outer_alias": "lne", "inner_alias": "ord", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04297", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(code, amount, date, name)\n sales(date, amount, id, code)\nTask: Retrieve id from departments that have at least one corresponding entry in sales sharing the same code.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "sales", "outer_alias": "dept", "inner_alias": "sale", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04298", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(level, salary, type, date)\n managers(name, value, type, code)\nTask: Retrieve name from accounts that have at least one corresponding entry in managers sharing the same level.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "managers", "outer_alias": "acct", "inner_alias": "mgr", "proj_col": "name", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04299", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(salary, status, type, level)\n shipments(code, date, value, type)\nTask: Retrieve salary from projects with salary above the MAX(value) of shipments rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE salary > (\n SELECT MAX(value) FROM shipments AS shp\n WHERE shp.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "shipments", "outer_alias": "prj", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04300", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(amount, salary, name, code)\n shipments(code, name, level, date)\nTask: Find amount from categories where amount exceeds the count of salary from shipments for the same type.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE amount > (\n SELECT COUNT(salary) FROM shipments AS shp\n WHERE shp.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "shipments", "outer_alias": "catg", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04301", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(id, level, amount, salary)\n branches(date, name, id, value)\nTask: Find code from categories where code appears in branches entries with matching code.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04302", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(id, status, name, date)\n invoices(type, amount, code, salary)\nTask: Find salary from tasks where a matching record exists in invoices with the same code.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "invoices", "outer_alias": "tsk", "inner_alias": "inv", "proj_col": "salary", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04303", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(id, value, date, salary)\n projects(status, amount, date, salary)\nTask: Retrieve value from invoices whose id is found in projects rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM projects AS prj\n WHERE prj.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "projects", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04304", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(code, amount, id, salary)\n categories(status, amount, date, code)\nTask: Find id from customers where amount exceeds the minimum value from categories for the same id.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE amount > (\n SELECT MIN(value) FROM categories AS catg\n WHERE catg.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "categories", "outer_alias": "cust", "inner_alias": "catg", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04305", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(name, code, date, value)\n orders(code, amount, salary, date)\nTask: Find id from transactions where value exceeds the maximum value from orders for the same type.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE value > (\n SELECT MAX(value) FROM orders AS ord\n WHERE ord.type = txn.type\n);", "metadata": {"outer_table": "transactions", "inner_table": "orders", "outer_alias": "txn", "inner_alias": "ord", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "txn.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04306", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(amount, code, name, status)\n projects(status, value, code, amount)\nTask: Select amount from branches where code exists in projects for the same status.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "projects", "outer_alias": "brc", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04307", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(name, code, value, salary)\n regions(level, date, type, id)\nTask: Retrieve amount from accounts whose code is found in regions rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "regions", "outer_alias": "acct", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04308", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(name, type, amount, status)\n branches(code, value, level, status)\nTask: Find name from sales where salary exceeds the average amount from branches for the same level.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE salary > (\n SELECT AVG(amount) FROM branches AS brc\n WHERE brc.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "branches", "outer_alias": "sale", "inner_alias": "brc", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04309", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(level, salary, amount, value)\n departments(date, code, amount, name)\nTask: Retrieve salary from tasks with value above the MIN(amount) of departments rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE value > (\n SELECT MIN(amount) FROM departments AS dept\n WHERE dept.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "departments", "outer_alias": "tsk", "inner_alias": "dept", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04310", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(date, type, id, code)\n sales(salary, status, name, date)\nTask: Find id from accounts where amount exceeds the minimum salary from sales for the same status.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE amount > (\n SELECT MIN(salary) FROM sales AS sale\n WHERE sale.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "sales", "outer_alias": "acct", "inner_alias": "sale", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04311", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(name, date, id, level)\n schedules(code, date, status, salary)\nTask: Find code from products where a matching record exists in schedules with the same code.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "schedules", "outer_alias": "prod", "inner_alias": "schd", "proj_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04312", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(amount, level, salary, name)\n managers(type, date, salary, name)\nTask: Select code from shipments where status exists in managers for the same type.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "managers", "outer_alias": "shp", "inner_alias": "mgr", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04313", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(id, type, name, salary)\n projects(type, status, level, name)\nTask: Find id from products where salary exceeds the total salary from projects for the same status.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE salary > (\n SELECT SUM(salary) FROM projects AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "projects", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04314", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(salary, code, name, type)\n customers(value, name, level, type)\nTask: Retrieve code from requests that have at least one corresponding entry in customers sharing the same type.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "customers", "outer_alias": "ordr", "inner_alias": "cust", "proj_col": "code", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04315", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(id, code, date, amount)\n requests(id, level, type, date)\nTask: Find id from items where a matching record exists in requests with the same type.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "requests", "outer_alias": "lne", "inner_alias": "ordr", "proj_col": "id", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04316", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(type, amount, value, date)\n transactions(value, name, level, code)\nTask: Select salary from orders where id exists in transactions for the same status.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE id IN (\n SELECT id FROM transactions AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04317", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(code, name, type, value)\n schedules(value, type, salary, id)\nTask: Find name from branches where level appears in schedules entries with matching type.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE level IN (\n SELECT level FROM schedules AS schd\n WHERE schd.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "schedules", "outer_alias": "brc", "inner_alias": "schd", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04318", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(status, date, code, value)\n products(id, date, type, salary)\nTask: Retrieve amount from transactions whose code is found in products rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM products AS prod\n WHERE prod.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04319", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(value, level, status, date)\n managers(status, id, date, name)\nTask: Retrieve salary from departments with amount above the AVG(salary) of managers rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE amount > (\n SELECT AVG(salary) FROM managers AS mgr\n WHERE mgr.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "managers", "outer_alias": "dept", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04320", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(id, type, amount, status)\n accounts(level, id, salary, status)\nTask: Find code from sales where a matching record exists in accounts with the same code.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "accounts", "outer_alias": "sale", "inner_alias": "acct", "proj_col": "code", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04321", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(value, id, salary, status)\n invoices(code, salary, amount, level)\nTask: Find code from sales where a matching record exists in invoices with the same code.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "invoices", "outer_alias": "sale", "inner_alias": "inv", "proj_col": "code", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04322", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(amount, id, level, value)\n products(code, name, status, amount)\nTask: Retrieve value from categories that have at least one corresponding entry in products sharing the same status.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "products", "outer_alias": "catg", "inner_alias": "prod", "proj_col": "value", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04323", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(value, id, level, type)\n sales(date, code, amount, type)\nTask: Find value from staff where a matching record exists in sales with the same level.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "sales", "outer_alias": "empl", "inner_alias": "sale", "proj_col": "value", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04324", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(type, date, value, name)\n managers(code, status, type, name)\nTask: Retrieve value from shipments whose code is found in managers rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM managers AS mgr\n WHERE mgr.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "managers", "outer_alias": "shp", "inner_alias": "mgr", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04325", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(amount, id, type, status)\n orders(date, value, name, status)\nTask: Find salary from projects where a matching record exists in orders with the same status.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "salary", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04326", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(type, value, name, salary)\n customers(value, status, name, id)\nTask: Retrieve salary from requests that have at least one corresponding entry in customers sharing the same status.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "customers", "outer_alias": "ordr", "inner_alias": "cust", "proj_col": "salary", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04327", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(amount, value, level, status)\n shipments(date, id, value, amount)\nTask: Retrieve name from categories with amount above the MAX(salary) of shipments rows sharing the same type.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE amount > (\n SELECT MAX(salary) FROM shipments AS shp\n WHERE shp.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "shipments", "outer_alias": "catg", "inner_alias": "shp", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04328", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(type, value, level, date)\n employees(value, salary, name, amount)\nTask: Retrieve salary from regions with salary above the AVG(salary) of employees rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE salary > (\n SELECT AVG(salary) FROM employees AS emp\n WHERE emp.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04329", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(level, status, value, id)\n accounts(id, name, value, level)\nTask: Retrieve salary from items that have at least one corresponding entry in accounts sharing the same level.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "accounts", "outer_alias": "lne", "inner_alias": "acct", "proj_col": "salary", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04330", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(status, name, salary, level)\n products(status, value, code, id)\nTask: Find name from staff where a matching record exists in products with the same level.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "products", "outer_alias": "empl", "inner_alias": "prod", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04331", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(status, date, code, name)\n items(status, type, date, name)\nTask: Select name from tasks where id exists in items for the same id.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "items", "outer_alias": "tsk", "inner_alias": "lne", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04332", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(name, amount, date, code)\n projects(level, amount, type, name)\nTask: Select name from categories where code exists in projects for the same level.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "projects", "outer_alias": "catg", "inner_alias": "prj", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04333", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(date, amount, salary, value)\n items(amount, id, status, salary)\nTask: Retrieve salary from schedules that have at least one corresponding entry in items sharing the same status.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "salary", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04334", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(date, id, name, type)\n tasks(type, status, id, salary)\nTask: Retrieve salary from shipments that have at least one corresponding entry in tasks sharing the same id.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "salary", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04335", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(code, date, level, value)\n invoices(value, amount, code, salary)\nTask: Retrieve id from tasks that have at least one corresponding entry in invoices sharing the same status.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "invoices", "outer_alias": "tsk", "inner_alias": "inv", "proj_col": "id", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04336", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(salary, name, level, status)\n products(id, amount, date, code)\nTask: Find name from managers where a matching record exists in products with the same type.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04337", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(id, level, code, type)\n schedules(value, date, amount, id)\nTask: Find salary from staff where a matching record exists in schedules with the same level.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "schedules", "outer_alias": "empl", "inner_alias": "schd", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04338", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(date, id, code, level)\n transactions(date, value, code, level)\nTask: Retrieve name from shipments that have at least one corresponding entry in transactions sharing the same code.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "transactions", "outer_alias": "shp", "inner_alias": "txn", "proj_col": "name", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04339", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(type, amount, value, status)\n branches(id, amount, name, date)\nTask: Find name from accounts where a matching record exists in branches with the same level.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "branches", "outer_alias": "acct", "inner_alias": "brc", "proj_col": "name", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04340", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(level, status, salary, date)\n orders(date, id, status, salary)\nTask: Find code from requests where amount exceeds the average value from orders for the same code.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE amount > (\n SELECT AVG(value) FROM orders AS ord\n WHERE ord.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "orders", "outer_alias": "ordr", "inner_alias": "ord", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04341", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(value, code, name, level)\n sales(salary, type, level, status)\nTask: Select code from categories where status exists in sales for the same code.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "sales", "outer_alias": "catg", "inner_alias": "sale", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04342", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(date, amount, id, status)\n transactions(level, date, value, status)\nTask: Find amount from items where amount exceeds the maximum amount from transactions for the same level.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE amount > (\n SELECT MAX(amount) FROM transactions AS txn\n WHERE txn.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "transactions", "outer_alias": "lne", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04343", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(value, date, amount, name)\n products(type, code, id, salary)\nTask: Retrieve amount from categories with amount above the COUNT(amount) of products rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE amount > (\n SELECT COUNT(amount) FROM products AS prod\n WHERE prod.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "products", "outer_alias": "catg", "inner_alias": "prod", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04344", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(name, amount, type, date)\n tasks(date, type, amount, value)\nTask: Retrieve value from orders with salary above the MAX(salary) of tasks rows sharing the same level.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE salary > (\n SELECT MAX(salary) FROM tasks AS tsk\n WHERE tsk.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "tasks", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04345", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(code, type, value, name)\n requests(id, salary, date, level)\nTask: Find name from regions where salary exceeds the count of salary from requests for the same code.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE salary > (\n SELECT COUNT(salary) FROM requests AS ordr\n WHERE ordr.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "requests", "outer_alias": "rgn", "inner_alias": "ordr", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04346", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(status, code, level, type)\n items(value, status, level, id)\nTask: Retrieve value from products with salary above the COUNT(value) of items rows sharing the same code.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE salary > (\n SELECT COUNT(value) FROM items AS lne\n WHERE lne.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "items", "outer_alias": "prod", "inner_alias": "lne", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04347", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(name, status, salary, code)\n requests(salary, amount, value, status)\nTask: Find name from tasks where a matching record exists in requests with the same level.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "requests", "outer_alias": "tsk", "inner_alias": "ordr", "proj_col": "name", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04348", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(amount, code, status, name)\n orders(value, status, name, id)\nTask: Find amount from tasks where a matching record exists in orders with the same level.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "orders", "outer_alias": "tsk", "inner_alias": "ord", "proj_col": "amount", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04349", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(code, salary, id, date)\n branches(id, date, salary, name)\nTask: Find value from tasks where value exceeds the total salary from branches for the same code.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE value > (\n SELECT SUM(salary) FROM branches AS brc\n WHERE brc.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "branches", "outer_alias": "tsk", "inner_alias": "brc", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04350", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(type, name, id, value)\n transactions(status, level, code, type)\nTask: Find value from orders where a matching record exists in transactions with the same type.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "orders", "inner_table": "transactions", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "value", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04351", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(level, id, amount, salary)\n products(code, type, level, date)\nTask: Retrieve salary from accounts with value above the AVG(amount) of products rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE value > (\n SELECT AVG(amount) FROM products AS prod\n WHERE prod.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04352", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(salary, date, amount, level)\n transactions(date, id, value, salary)\nTask: Retrieve amount from regions whose code is found in transactions rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM transactions AS txn\n WHERE txn.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "transactions", "outer_alias": "rgn", "inner_alias": "txn", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04353", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(name, amount, date, value)\n accounts(value, code, status, amount)\nTask: Select code from products where code exists in accounts for the same level.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "accounts", "outer_alias": "prod", "inner_alias": "acct", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04354", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(level, salary, code, status)\n staff(status, value, amount, code)\nTask: Retrieve salary from managers that have at least one corresponding entry in staff sharing the same type.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "staff", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04355", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(type, code, value, date)\n products(date, amount, type, salary)\nTask: Select salary from customers where level exists in products for the same status.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "products", "outer_alias": "cust", "inner_alias": "prod", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04356", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(type, status, value, name)\n items(amount, type, salary, code)\nTask: Select salary from employees where status exists in items for the same level.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "items", "outer_alias": "emp", "inner_alias": "lne", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04357", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(code, level, type, amount)\n employees(salary, date, type, name)\nTask: Find amount from staff where a matching record exists in employees with the same type.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04358", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(id, name, type, code)\n products(salary, type, name, status)\nTask: Find code from projects where amount exceeds the average salary from products for the same status.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE amount > (\n SELECT AVG(salary) FROM products AS prod\n WHERE prod.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "products", "outer_alias": "prj", "inner_alias": "prod", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04359", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(amount, salary, type, date)\n customers(id, code, value, status)\nTask: Find name from orders where level appears in customers entries with matching status.\nSQL:", "sql": "SELECT name FROM orders AS ord\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "customers", "outer_alias": "ord", "inner_alias": "cust", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04360", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(code, status, date, amount)\n items(type, amount, id, level)\nTask: Retrieve code from accounts whose level is found in items rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM items AS lne\n WHERE lne.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "items", "outer_alias": "acct", "inner_alias": "lne", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04361", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(status, level, name, amount)\n regions(name, value, level, amount)\nTask: Retrieve salary from items that have at least one corresponding entry in regions sharing the same type.\nSQL:", "sql": "SELECT salary FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "regions", "outer_alias": "lne", "inner_alias": "rgn", "proj_col": "salary", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04362", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(type, amount, level, value)\n sales(salary, amount, date, type)\nTask: Retrieve value from requests with amount above the MIN(amount) of sales rows sharing the same level.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE amount > (\n SELECT MIN(amount) FROM sales AS sale\n WHERE sale.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "sales", "outer_alias": "ordr", "inner_alias": "sale", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04363", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(level, type, status, code)\n departments(status, value, level, amount)\nTask: Select id from sales where code exists in departments for the same status.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE code IN (\n SELECT code FROM departments AS dept\n WHERE dept.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "departments", "outer_alias": "sale", "inner_alias": "dept", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04364", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(value, status, salary, name)\n transactions(value, type, name, amount)\nTask: Retrieve id from regions whose type is found in transactions rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM transactions AS txn\n WHERE txn.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "transactions", "outer_alias": "rgn", "inner_alias": "txn", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04365", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(date, level, value, status)\n requests(amount, type, salary, date)\nTask: Find name from managers where a matching record exists in requests with the same id.\nSQL:", "sql": "SELECT name FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "requests", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04366", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(status, salary, name, id)\n projects(level, salary, type, status)\nTask: Retrieve name from branches whose type is found in projects rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE type IN (\n SELECT type FROM projects AS prj\n WHERE prj.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "projects", "outer_alias": "brc", "inner_alias": "prj", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04367", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(salary, value, date, id)\n staff(name, level, status, code)\nTask: Select value from products where id exists in staff for the same code.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE id IN (\n SELECT id FROM staff AS empl\n WHERE empl.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04368", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(date, amount, code, name)\n shipments(value, date, type, name)\nTask: Select code from tasks where code exists in shipments for the same status.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "shipments", "outer_alias": "tsk", "inner_alias": "shp", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04369", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(name, value, amount, id)\n tasks(id, date, code, name)\nTask: Find value from invoices where salary exceeds the average value from tasks for the same level.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE salary > (\n SELECT AVG(value) FROM tasks AS tsk\n WHERE tsk.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04370", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(date, id, level, value)\n sales(level, status, type, amount)\nTask: Select amount from schedules where level exists in sales for the same code.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM sales AS sale\n WHERE sale.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "sales", "outer_alias": "schd", "inner_alias": "sale", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04371", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(name, id, level, salary)\n managers(type, date, code, id)\nTask: Find id from sales where salary exceeds the average value from managers for the same status.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE salary > (\n SELECT AVG(value) FROM managers AS mgr\n WHERE mgr.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04372", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(level, id, amount, value)\n transactions(name, status, code, id)\nTask: Retrieve code from schedules that have at least one corresponding entry in transactions sharing the same type.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "transactions", "outer_alias": "schd", "inner_alias": "txn", "proj_col": "code", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04373", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(amount, date, salary, status)\n sales(id, amount, salary, date)\nTask: Select code from customers where status exists in sales for the same level.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "sales", "outer_alias": "cust", "inner_alias": "sale", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04374", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(date, status, salary, value)\n managers(status, date, level, code)\nTask: Find amount from sales where a matching record exists in managers with the same level.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "amount", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04375", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(id, amount, code, status)\n categories(value, date, id, type)\nTask: Find id from managers where value exceeds the average value from categories for the same type.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE value > (\n SELECT AVG(value) FROM categories AS catg\n WHERE catg.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "categories", "outer_alias": "mgr", "inner_alias": "catg", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04376", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(amount, id, type, date)\n tasks(name, code, type, id)\nTask: Find value from regions where a matching record exists in tasks with the same level.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "tasks", "outer_alias": "rgn", "inner_alias": "tsk", "proj_col": "value", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04377", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(amount, name, status, value)\n accounts(name, amount, level, id)\nTask: Select value from managers where code exists in accounts for the same id.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "accounts", "outer_alias": "mgr", "inner_alias": "acct", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04378", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(salary, level, id, status)\n shipments(id, type, level, salary)\nTask: Retrieve value from sales with amount above the COUNT(amount) of shipments rows sharing the same code.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE amount > (\n SELECT COUNT(amount) FROM shipments AS shp\n WHERE shp.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "shipments", "outer_alias": "sale", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04379", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(level, code, amount, name)\n sales(date, amount, level, type)\nTask: Find code from employees where a matching record exists in sales with the same type.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "sales", "outer_alias": "emp", "inner_alias": "sale", "proj_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04380", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(amount, value, level, code)\n shipments(level, value, date, type)\nTask: Retrieve id from items with salary above the COUNT(salary) of shipments rows sharing the same id.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE salary > (\n SELECT COUNT(salary) FROM shipments AS shp\n WHERE shp.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "shipments", "outer_alias": "lne", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04381", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(amount, level, name, value)\n invoices(salary, code, status, level)\nTask: Retrieve id from shipments whose code is found in invoices rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM invoices AS inv\n WHERE inv.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "invoices", "outer_alias": "shp", "inner_alias": "inv", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04382", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(name, id, value, status)\n managers(name, salary, date, amount)\nTask: Find value from sales where value exceeds the total amount from managers for the same id.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE value > (\n SELECT SUM(amount) FROM managers AS mgr\n WHERE mgr.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04383", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(type, status, level, amount)\n products(status, name, code, date)\nTask: Find salary from regions where value exceeds the total salary from products for the same level.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE value > (\n SELECT SUM(salary) FROM products AS prod\n WHERE prod.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04384", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(value, name, salary, status)\n products(code, status, date, id)\nTask: Retrieve id from managers that have at least one corresponding entry in products sharing the same type.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04385", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(value, date, salary, name)\n schedules(date, id, value, name)\nTask: Retrieve value from sales whose id is found in schedules rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "schedules", "outer_alias": "sale", "inner_alias": "schd", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04386", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(status, date, type, value)\n departments(level, date, value, id)\nTask: Retrieve salary from invoices whose id is found in departments rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM departments AS dept\n WHERE dept.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "departments", "outer_alias": "inv", "inner_alias": "dept", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04387", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(status, name, value, salary)\n tasks(date, salary, amount, value)\nTask: Find name from departments where amount exceeds the total value from tasks for the same status.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE amount > (\n SELECT SUM(value) FROM tasks AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04388", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(salary, level, date, value)\n items(code, name, type, value)\nTask: Select value from schedules where id exists in items for the same id.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04389", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(salary, status, code, type)\n schedules(amount, type, name, id)\nTask: Retrieve code from departments whose id is found in schedules rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "schedules", "outer_alias": "dept", "inner_alias": "schd", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04390", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(code, date, type, id)\n sales(type, code, value, level)\nTask: Find code from schedules where a matching record exists in sales with the same id.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "sales", "outer_alias": "schd", "inner_alias": "sale", "proj_col": "code", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04391", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(status, value, salary, name)\n customers(amount, status, date, code)\nTask: Retrieve amount from items whose level is found in customers rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE level IN (\n SELECT level FROM customers AS cust\n WHERE cust.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "customers", "outer_alias": "lne", "inner_alias": "cust", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04392", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(amount, value, status, date)\n products(code, id, salary, type)\nTask: Find value from employees where value exceeds the maximum salary from products for the same status.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE value > (\n SELECT MAX(salary) FROM products AS prod\n WHERE prod.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04393", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(status, amount, id, level)\n categories(type, status, salary, code)\nTask: Retrieve amount from items with amount above the AVG(salary) of categories rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE amount > (\n SELECT AVG(salary) FROM categories AS catg\n WHERE catg.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04394", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(value, level, code, id)\n staff(salary, status, name, value)\nTask: Retrieve amount from products that have at least one corresponding entry in staff sharing the same status.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "amount", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04395", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(id, status, code, date)\n managers(salary, code, id, amount)\nTask: Retrieve amount from tasks that have at least one corresponding entry in managers sharing the same code.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "managers", "outer_alias": "tsk", "inner_alias": "mgr", "proj_col": "amount", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04396", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(date, name, salary, level)\n tasks(value, code, name, date)\nTask: Retrieve id from products with salary above the MAX(amount) of tasks rows sharing the same id.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM tasks AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "tasks", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04397", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(level, amount, salary, name)\n branches(amount, status, date, type)\nTask: Retrieve salary from invoices whose code is found in branches rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "branches", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04398", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(level, status, salary, name)\n regions(amount, code, name, status)\nTask: Find salary from branches where level appears in regions entries with matching status.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "regions", "outer_alias": "brc", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04399", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(value, status, date, salary)\n staff(date, code, level, value)\nTask: Retrieve value from sales whose level is found in staff rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "staff", "outer_alias": "sale", "inner_alias": "empl", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04400", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, salary, type, status)\n products(date, level, name, salary)\nTask: Retrieve id from regions with value above the MAX(value) of products rows sharing the same code.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE value > (\n SELECT MAX(value) FROM products AS prod\n WHERE prod.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04401", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(status, date, type, id)\n schedules(amount, type, id, value)\nTask: Retrieve salary from accounts whose id is found in schedules rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "schedules", "outer_alias": "acct", "inner_alias": "schd", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04402", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(id, salary, date, level)\n orders(id, amount, status, value)\nTask: Find amount from customers where value exceeds the average value from orders for the same level.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE value > (\n SELECT AVG(value) FROM orders AS ord\n WHERE ord.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "orders", "outer_alias": "cust", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04403", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(salary, code, date, value)\n items(level, name, code, salary)\nTask: Retrieve value from regions whose status is found in items rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "items", "outer_alias": "rgn", "inner_alias": "lne", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04404", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(code, type, value, level)\n products(name, type, amount, date)\nTask: Retrieve id from invoices that have at least one corresponding entry in products sharing the same code.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "products", "outer_alias": "inv", "inner_alias": "prod", "proj_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04405", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(name, value, code, type)\n regions(id, code, type, status)\nTask: Retrieve amount from branches with amount above the SUM(value) of regions rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE amount > (\n SELECT SUM(value) FROM regions AS rgn\n WHERE rgn.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "regions", "outer_alias": "brc", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04406", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(salary, amount, value, status)\n regions(value, name, level, status)\nTask: Retrieve salary from sales with amount above the AVG(salary) of regions rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE amount > (\n SELECT AVG(salary) FROM regions AS rgn\n WHERE rgn.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "regions", "outer_alias": "sale", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04407", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(value, salary, code, date)\n regions(amount, date, type, code)\nTask: Retrieve name from categories with value above the SUM(salary) of regions rows sharing the same code.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE value > (\n SELECT SUM(salary) FROM regions AS rgn\n WHERE rgn.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04408", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(salary, type, level, name)\n transactions(type, level, code, name)\nTask: Retrieve salary from customers that have at least one corresponding entry in transactions sharing the same status.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "transactions", "outer_alias": "cust", "inner_alias": "txn", "proj_col": "salary", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04409", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(date, level, id, value)\n products(id, code, amount, date)\nTask: Select id from staff where level exists in products for the same type.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "products", "outer_alias": "empl", "inner_alias": "prod", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04410", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(amount, type, level, id)\n projects(status, code, amount, id)\nTask: Retrieve code from accounts that have at least one corresponding entry in projects sharing the same type.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "projects", "outer_alias": "acct", "inner_alias": "prj", "proj_col": "code", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04411", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(value, date, status, name)\n departments(code, amount, value, type)\nTask: Retrieve value from orders that have at least one corresponding entry in departments sharing the same id.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "departments", "outer_alias": "ord", "inner_alias": "dept", "proj_col": "value", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04412", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(code, id, status, level)\n regions(salary, value, name, type)\nTask: Retrieve salary from customers whose type is found in regions rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE type IN (\n SELECT type FROM regions AS rgn\n WHERE rgn.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04413", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(status, date, level, value)\n accounts(status, code, type, id)\nTask: Retrieve value from departments with salary above the AVG(salary) of accounts rows sharing the same type.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE salary > (\n SELECT AVG(salary) FROM accounts AS acct\n WHERE acct.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "accounts", "outer_alias": "dept", "inner_alias": "acct", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04414", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(value, type, status, salary)\n shipments(id, date, value, code)\nTask: Find id from staff where a matching record exists in shipments with the same code.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04415", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(value, type, date, level)\n departments(type, id, code, level)\nTask: Find code from staff where level appears in departments entries with matching status.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "departments", "outer_alias": "empl", "inner_alias": "dept", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04416", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(value, date, code, status)\n items(id, date, type, code)\nTask: Select amount from transactions where level exists in items for the same status.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM items AS lne\n WHERE lne.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "items", "outer_alias": "txn", "inner_alias": "lne", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04417", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(amount, code, status, value)\n managers(code, value, date, level)\nTask: Retrieve amount from requests with amount above the MAX(salary) of managers rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE amount > (\n SELECT MAX(salary) FROM managers AS mgr\n WHERE mgr.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "managers", "outer_alias": "ordr", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04418", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(code, value, level, salary)\n customers(name, type, id, date)\nTask: Find salary from invoices where amount exceeds the minimum value from customers for the same level.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE amount > (\n SELECT MIN(value) FROM customers AS cust\n WHERE cust.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "customers", "outer_alias": "inv", "inner_alias": "cust", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04419", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(level, date, status, code)\n items(status, level, name, date)\nTask: Find name from accounts where a matching record exists in items with the same type.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "items", "outer_alias": "acct", "inner_alias": "lne", "proj_col": "name", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04420", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(id, name, date, amount)\n tasks(id, salary, level, value)\nTask: Retrieve id from managers with amount above the SUM(value) of tasks rows sharing the same code.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE amount > (\n SELECT SUM(value) FROM tasks AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "tasks", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04421", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(name, code, value, id)\n sales(level, date, code, value)\nTask: Retrieve id from accounts whose level is found in sales rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM sales AS sale\n WHERE sale.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "sales", "outer_alias": "acct", "inner_alias": "sale", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04422", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(date, salary, amount, status)\n accounts(salary, code, level, date)\nTask: Find value from invoices where salary exceeds the average value from accounts for the same id.\nSQL:", "sql": "SELECT value FROM invoices AS inv\nWHERE salary > (\n SELECT AVG(value) FROM accounts AS acct\n WHERE acct.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04423", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(level, code, status, value)\n sales(level, date, type, code)\nTask: Find code from tasks where value exceeds the maximum value from sales for the same status.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE value > (\n SELECT MAX(value) FROM sales AS sale\n WHERE sale.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "sales", "outer_alias": "tsk", "inner_alias": "sale", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04424", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(status, date, amount, value)\n sales(level, id, type, name)\nTask: Retrieve amount from orders with value above the SUM(salary) of sales rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE value > (\n SELECT SUM(salary) FROM sales AS sale\n WHERE sale.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "sales", "outer_alias": "ord", "inner_alias": "sale", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04425", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(id, date, level, amount)\n projects(id, code, date, level)\nTask: Retrieve value from managers that have at least one corresponding entry in projects sharing the same code.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "projects", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04426", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(code, amount, type, name)\n invoices(status, level, code, date)\nTask: Find id from regions where amount exceeds the total amount from invoices for the same type.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE amount > (\n SELECT SUM(amount) FROM invoices AS inv\n WHERE inv.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "invoices", "outer_alias": "rgn", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04427", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(level, salary, value, amount)\n sales(salary, status, date, code)\nTask: Find code from staff where salary exceeds the total value from sales for the same type.\nSQL:", "sql": "SELECT code FROM staff AS empl\nWHERE salary > (\n SELECT SUM(value) FROM sales AS sale\n WHERE sale.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "sales", "outer_alias": "empl", "inner_alias": "sale", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04428", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(level, salary, type, name)\n shipments(id, salary, type, code)\nTask: Find code from products where status appears in shipments entries with matching code.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE status IN (\n SELECT status FROM shipments AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "shipments", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04429", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(type, status, id, value)\n requests(name, value, status, salary)\nTask: Find salary from departments where a matching record exists in requests with the same level.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "requests", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04430", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(status, type, code, name)\n items(date, status, id, type)\nTask: Find amount from managers where a matching record exists in items with the same id.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "items", "outer_alias": "mgr", "inner_alias": "lne", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04431", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(value, type, id, status)\n products(amount, level, date, value)\nTask: Retrieve code from transactions whose level is found in products rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE level IN (\n SELECT level FROM products AS prod\n WHERE prod.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04432", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(status, id, value, code)\n customers(amount, value, salary, level)\nTask: Find name from tasks where code appears in customers entries with matching id.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "customers", "outer_alias": "tsk", "inner_alias": "cust", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04433", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(level, date, type, id)\n invoices(id, code, type, salary)\nTask: Find id from regions where code appears in invoices entries with matching type.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM invoices AS inv\n WHERE inv.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "invoices", "outer_alias": "rgn", "inner_alias": "inv", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04434", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(level, id, code, name)\n employees(value, date, type, id)\nTask: Find id from tasks where amount exceeds the total value from employees for the same code.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE amount > (\n SELECT SUM(value) FROM employees AS emp\n WHERE emp.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "employees", "outer_alias": "tsk", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04435", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(value, name, id, type)\n products(type, salary, code, level)\nTask: Retrieve code from managers with value above the MAX(amount) of products rows sharing the same level.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE value > (\n SELECT MAX(amount) FROM products AS prod\n WHERE prod.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04436", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(name, value, code, type)\n branches(name, value, code, amount)\nTask: Retrieve id from tasks that have at least one corresponding entry in branches sharing the same id.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "branches", "outer_alias": "tsk", "inner_alias": "brc", "proj_col": "id", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04437", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(date, name, salary, id)\n sales(level, amount, salary, status)\nTask: Retrieve value from requests that have at least one corresponding entry in sales sharing the same code.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "sales", "outer_alias": "ordr", "inner_alias": "sale", "proj_col": "value", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04438", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(date, salary, status, amount)\n staff(id, value, code, status)\nTask: Find value from tasks where type appears in staff entries with matching level.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "staff", "outer_alias": "tsk", "inner_alias": "empl", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04439", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(status, id, name, date)\n orders(date, salary, level, amount)\nTask: Retrieve id from transactions that have at least one corresponding entry in orders sharing the same id.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "orders", "outer_alias": "txn", "inner_alias": "ord", "proj_col": "id", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04440", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(name, status, amount, level)\n sales(status, name, type, level)\nTask: Select id from categories where status exists in sales for the same code.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "sales", "outer_alias": "catg", "inner_alias": "sale", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04441", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(level, date, amount, name)\n tasks(code, value, name, id)\nTask: Retrieve id from orders with value above the MIN(amount) of tasks rows sharing the same code.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE value > (\n SELECT MIN(amount) FROM tasks AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "tasks", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04442", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(amount, value, status, id)\n invoices(value, name, salary, amount)\nTask: Find code from customers where amount exceeds the minimum salary from invoices for the same id.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE amount > (\n SELECT MIN(salary) FROM invoices AS inv\n WHERE inv.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04443", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(amount, level, type, name)\n managers(name, level, code, salary)\nTask: Retrieve amount from sales with amount above the MIN(salary) of managers rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE amount > (\n SELECT MIN(salary) FROM managers AS mgr\n WHERE mgr.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04444", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(id, amount, type, level)\n products(date, amount, level, value)\nTask: Find name from regions where a matching record exists in products with the same status.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = rgn.status\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "name", "join_col": "status", "correlated_ref": "rgn.status", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04445", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(value, status, name, salary)\n accounts(code, type, amount, name)\nTask: Find amount from categories where salary exceeds the average salary from accounts for the same code.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE salary > (\n SELECT AVG(salary) FROM accounts AS acct\n WHERE acct.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "accounts", "outer_alias": "catg", "inner_alias": "acct", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04446", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(amount, name, level, code)\n employees(value, level, status, amount)\nTask: Select name from customers where type exists in employees for the same type.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04447", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(date, name, level, code)\n items(salary, name, type, status)\nTask: Retrieve name from sales that have at least one corresponding entry in items sharing the same level.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "items", "outer_alias": "sale", "inner_alias": "lne", "proj_col": "name", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04448", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(name, level, salary, type)\n products(name, type, value, id)\nTask: Find salary from employees where a matching record exists in products with the same type.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "products", "outer_alias": "emp", "inner_alias": "prod", "proj_col": "salary", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04449", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(date, type, salary, code)\n accounts(value, code, status, type)\nTask: Retrieve salary from schedules that have at least one corresponding entry in accounts sharing the same code.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "accounts", "outer_alias": "schd", "inner_alias": "acct", "proj_col": "salary", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04450", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(id, name, type, status)\n invoices(amount, code, id, value)\nTask: Retrieve name from items whose status is found in invoices rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE status IN (\n SELECT status FROM invoices AS inv\n WHERE inv.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "invoices", "outer_alias": "lne", "inner_alias": "inv", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04451", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(level, id, amount, name)\n schedules(date, id, value, code)\nTask: Retrieve amount from categories with amount above the COUNT(amount) of schedules rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE amount > (\n SELECT COUNT(amount) FROM schedules AS schd\n WHERE schd.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "schedules", "outer_alias": "catg", "inner_alias": "schd", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04452", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(id, value, amount, date)\n categories(id, date, code, amount)\nTask: Find amount from customers where a matching record exists in categories with the same code.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "categories", "outer_alias": "cust", "inner_alias": "catg", "proj_col": "amount", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04453", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(name, type, salary, value)\n transactions(name, code, level, date)\nTask: Find amount from requests where status appears in transactions entries with matching level.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE status IN (\n SELECT status FROM transactions AS txn\n WHERE txn.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04454", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(salary, amount, level, date)\n tasks(id, code, level, date)\nTask: Find value from departments where salary exceeds the average amount from tasks for the same code.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE salary > (\n SELECT AVG(amount) FROM tasks AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04455", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(value, code, amount, status)\n tasks(date, status, type, code)\nTask: Retrieve id from categories whose code is found in tasks rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE code IN (\n SELECT code FROM tasks AS tsk\n WHERE tsk.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "tasks", "outer_alias": "catg", "inner_alias": "tsk", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04456", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(salary, type, amount, id)\n categories(status, name, level, id)\nTask: Retrieve code from projects that have at least one corresponding entry in categories sharing the same id.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "categories", "outer_alias": "prj", "inner_alias": "catg", "proj_col": "code", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04457", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(value, date, name, amount)\n shipments(id, amount, date, status)\nTask: Retrieve salary from managers with amount above the MIN(amount) of shipments rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE amount > (\n SELECT MIN(amount) FROM shipments AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "shipments", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04458", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(value, date, salary, status)\n requests(value, status, code, level)\nTask: Retrieve id from departments whose id is found in requests rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE id IN (\n SELECT id FROM requests AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "requests", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04459", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(id, value, level, amount)\n accounts(date, level, amount, status)\nTask: Find code from customers where type appears in accounts entries with matching id.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "accounts", "outer_alias": "cust", "inner_alias": "acct", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04460", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(name, amount, type, code)\n orders(level, value, date, status)\nTask: Retrieve code from branches that have at least one corresponding entry in orders sharing the same type.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "orders", "outer_alias": "brc", "inner_alias": "ord", "proj_col": "code", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04461", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(date, status, value, code)\n schedules(level, code, type, salary)\nTask: Retrieve id from tasks that have at least one corresponding entry in schedules sharing the same type.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "schedules", "outer_alias": "tsk", "inner_alias": "schd", "proj_col": "id", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04462", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(level, code, name, date)\n categories(code, name, salary, status)\nTask: Find amount from products where salary exceeds the total salary from categories for the same status.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE salary > (\n SELECT SUM(salary) FROM categories AS catg\n WHERE catg.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "categories", "outer_alias": "prod", "inner_alias": "catg", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04463", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(code, status, date, type)\n regions(name, status, code, date)\nTask: Retrieve id from departments that have at least one corresponding entry in regions sharing the same id.\nSQL:", "sql": "SELECT id FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "regions", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04464", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(level, salary, status, date)\n customers(value, type, id, status)\nTask: Retrieve name from products that have at least one corresponding entry in customers sharing the same code.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "customers", "outer_alias": "prod", "inner_alias": "cust", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04465", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(name, id, date, amount)\n customers(amount, id, date, name)\nTask: Find id from orders where a matching record exists in customers with the same status.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "customers", "outer_alias": "ord", "inner_alias": "cust", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04466", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(id, value, salary, type)\n regions(date, id, amount, value)\nTask: Find salary from transactions where salary exceeds the maximum value from regions for the same id.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE salary > (\n SELECT MAX(value) FROM regions AS rgn\n WHERE rgn.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "regions", "outer_alias": "txn", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04467", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(name, type, level, date)\n schedules(amount, type, value, code)\nTask: Retrieve salary from invoices that have at least one corresponding entry in schedules sharing the same code.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "schedules", "outer_alias": "inv", "inner_alias": "schd", "proj_col": "salary", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04468", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(code, salary, type, date)\n transactions(salary, value, name, status)\nTask: Find id from shipments where status appears in transactions entries with matching id.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE status IN (\n SELECT status FROM transactions AS txn\n WHERE txn.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "transactions", "outer_alias": "shp", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04469", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(date, status, level, amount)\n schedules(status, date, code, value)\nTask: Find code from regions where a matching record exists in schedules with the same type.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "schedules", "outer_alias": "rgn", "inner_alias": "schd", "proj_col": "code", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04470", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(value, salary, level, date)\n departments(salary, status, code, amount)\nTask: Retrieve name from categories with value above the SUM(amount) of departments rows sharing the same type.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE value > (\n SELECT SUM(amount) FROM departments AS dept\n WHERE dept.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "departments", "outer_alias": "catg", "inner_alias": "dept", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04471", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(id, status, name, type)\n invoices(salary, id, status, value)\nTask: Retrieve value from items that have at least one corresponding entry in invoices sharing the same id.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "invoices", "outer_alias": "lne", "inner_alias": "inv", "proj_col": "value", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04472", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(code, value, type, level)\n customers(value, date, name, type)\nTask: Find value from sales where a matching record exists in customers with the same status.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "customers", "outer_alias": "sale", "inner_alias": "cust", "proj_col": "value", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04473", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(id, status, name, amount)\n shipments(type, date, name, id)\nTask: Retrieve value from customers that have at least one corresponding entry in shipments sharing the same type.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "shipments", "outer_alias": "cust", "inner_alias": "shp", "proj_col": "value", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04474", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(value, code, amount, level)\n employees(date, amount, type, salary)\nTask: Find salary from projects where salary exceeds the average salary from employees for the same type.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE salary > (\n SELECT AVG(salary) FROM employees AS emp\n WHERE emp.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "employees", "outer_alias": "prj", "inner_alias": "emp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04475", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(value, salary, code, name)\n branches(status, name, id, salary)\nTask: Find amount from sales where amount exceeds the average salary from branches for the same level.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE amount > (\n SELECT AVG(salary) FROM branches AS brc\n WHERE brc.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "branches", "outer_alias": "sale", "inner_alias": "brc", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04476", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(value, name, id, salary)\n requests(level, amount, name, id)\nTask: Find value from transactions where id appears in requests entries with matching code.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE id IN (\n SELECT id FROM requests AS ordr\n WHERE ordr.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "requests", "outer_alias": "txn", "inner_alias": "ordr", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04477", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(value, name, date, status)\n sales(status, code, type, date)\nTask: Retrieve id from transactions with amount above the COUNT(salary) of sales rows sharing the same level.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE amount > (\n SELECT COUNT(salary) FROM sales AS sale\n WHERE sale.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "sales", "outer_alias": "txn", "inner_alias": "sale", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04478", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(id, code, date, amount)\n branches(amount, id, status, value)\nTask: Select salary from departments where status exists in branches for the same level.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "branches", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04479", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(id, date, amount, code)\n shipments(value, date, code, name)\nTask: Select value from staff where code exists in shipments for the same status.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "shipments", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04480", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(status, date, id, value)\n customers(amount, level, type, salary)\nTask: Find value from projects where code appears in customers entries with matching code.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "customers", "outer_alias": "prj", "inner_alias": "cust", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04481", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(salary, code, type, amount)\n products(salary, name, type, level)\nTask: Find name from shipments where status appears in products entries with matching type.\nSQL:", "sql": "SELECT name FROM shipments AS shp\nWHERE status IN (\n SELECT status FROM products AS prod\n WHERE prod.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04482", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(amount, code, status, id)\n tasks(code, level, status, salary)\nTask: Retrieve salary from transactions with salary above the COUNT(amount) of tasks rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE salary > (\n SELECT COUNT(amount) FROM tasks AS tsk\n WHERE tsk.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "tasks", "outer_alias": "txn", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04483", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(type, value, status, salary)\n customers(amount, type, code, value)\nTask: Find salary from transactions where amount exceeds the total value from customers for the same code.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE amount > (\n SELECT SUM(value) FROM customers AS cust\n WHERE cust.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "customers", "outer_alias": "txn", "inner_alias": "cust", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04484", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(status, date, level, id)\n departments(type, date, status, value)\nTask: Select value from accounts where id exists in departments for the same type.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM departments AS dept\n WHERE dept.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "departments", "outer_alias": "acct", "inner_alias": "dept", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04485", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(status, amount, id, type)\n employees(name, amount, value, code)\nTask: Retrieve id from orders that have at least one corresponding entry in employees sharing the same code.\nSQL:", "sql": "SELECT id FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04486", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(code, amount, type, level)\n invoices(name, value, code, amount)\nTask: Retrieve salary from sales that have at least one corresponding entry in invoices sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "invoices", "outer_alias": "sale", "inner_alias": "inv", "proj_col": "salary", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04487", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(value, amount, salary, type)\n products(value, level, date, id)\nTask: Find value from sales where a matching record exists in products with the same level.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "products", "outer_alias": "sale", "inner_alias": "prod", "proj_col": "value", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04488", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(amount, name, code, status)\n projects(value, name, date, status)\nTask: Retrieve code from sales whose code is found in projects rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "projects", "outer_alias": "sale", "inner_alias": "prj", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04489", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(type, status, value, level)\n items(salary, amount, type, value)\nTask: Find amount from schedules where salary exceeds the average salary from items for the same status.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE salary > (\n SELECT AVG(salary) FROM items AS lne\n WHERE lne.status = schd.status\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "schd.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04490", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(value, salary, code, date)\n sales(type, value, code, amount)\nTask: Retrieve amount from regions whose level is found in sales rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE level IN (\n SELECT level FROM sales AS sale\n WHERE sale.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "sales", "outer_alias": "rgn", "inner_alias": "sale", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04491", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(id, status, name, salary)\n staff(status, name, date, level)\nTask: Retrieve name from tasks that have at least one corresponding entry in staff sharing the same id.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "staff", "outer_alias": "tsk", "inner_alias": "empl", "proj_col": "name", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04492", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(type, amount, name, date)\n categories(level, value, code, amount)\nTask: Retrieve id from schedules that have at least one corresponding entry in categories sharing the same code.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "categories", "outer_alias": "schd", "inner_alias": "catg", "proj_col": "id", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04493", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(salary, status, id, date)\n tasks(amount, code, name, date)\nTask: Retrieve id from staff with value above the COUNT(amount) of tasks rows sharing the same id.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE value > (\n SELECT COUNT(amount) FROM tasks AS tsk\n WHERE tsk.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "tasks", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04494", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(type, salary, date, code)\n transactions(code, name, amount, salary)\nTask: Find code from accounts where a matching record exists in transactions with the same type.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = acct.type\n);", "metadata": {"outer_table": "accounts", "inner_table": "transactions", "outer_alias": "acct", "inner_alias": "txn", "proj_col": "code", "join_col": "type", "correlated_ref": "acct.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04495", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(level, name, value, type)\n managers(code, value, type, level)\nTask: Find id from categories where amount exceeds the total value from managers for the same type.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE amount > (\n SELECT SUM(value) FROM managers AS mgr\n WHERE mgr.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "managers", "outer_alias": "catg", "inner_alias": "mgr", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04496", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(salary, code, id, value)\n customers(status, name, level, amount)\nTask: Find salary from staff where a matching record exists in customers with the same level.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "customers", "outer_alias": "empl", "inner_alias": "cust", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04497", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(salary, amount, level, date)\n shipments(name, status, value, date)\nTask: Retrieve value from orders that have at least one corresponding entry in shipments sharing the same status.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "shipments", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "value", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04498", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(code, type, id, status)\n branches(id, name, status, date)\nTask: Find name from projects where a matching record exists in branches with the same id.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "branches", "outer_alias": "prj", "inner_alias": "brc", "proj_col": "name", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04499", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(amount, name, status, salary)\n tasks(date, status, value, code)\nTask: Retrieve code from accounts with value above the MAX(amount) of tasks rows sharing the same level.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE value > (\n SELECT MAX(amount) FROM tasks AS tsk\n WHERE tsk.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "tasks", "outer_alias": "acct", "inner_alias": "tsk", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04500", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(type, status, value, salary)\n customers(value, name, type, amount)\nTask: Find id from accounts where amount exceeds the total value from customers for the same status.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE amount > (\n SELECT SUM(value) FROM customers AS cust\n WHERE cust.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "customers", "outer_alias": "acct", "inner_alias": "cust", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04501", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(code, date, salary, status)\n orders(value, code, type, id)\nTask: Retrieve code from projects with amount above the SUM(amount) of orders rows sharing the same code.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE amount > (\n SELECT SUM(amount) FROM orders AS ord\n WHERE ord.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04502", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(value, date, amount, name)\n tasks(date, value, amount, code)\nTask: Retrieve name from branches with amount above the SUM(value) of tasks rows sharing the same id.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE amount > (\n SELECT SUM(value) FROM tasks AS tsk\n WHERE tsk.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04503", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(type, status, code, level)\n shipments(code, salary, date, value)\nTask: Retrieve value from schedules that have at least one corresponding entry in shipments sharing the same id.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.id = schd.id\n);", "metadata": {"outer_table": "schedules", "inner_table": "shipments", "outer_alias": "schd", "inner_alias": "shp", "proj_col": "value", "join_col": "id", "correlated_ref": "schd.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04504", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(date, level, id, value)\n branches(status, salary, level, amount)\nTask: Retrieve value from sales that have at least one corresponding entry in branches sharing the same status.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "branches", "outer_alias": "sale", "inner_alias": "brc", "proj_col": "value", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04505", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(amount, id, type, level)\n orders(amount, code, type, salary)\nTask: Find amount from transactions where a matching record exists in orders with the same id.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "orders", "outer_alias": "txn", "inner_alias": "ord", "proj_col": "amount", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04506", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(id, amount, date, code)\n departments(salary, amount, id, code)\nTask: Select amount from categories where id exists in departments for the same status.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE id IN (\n SELECT id FROM departments AS dept\n WHERE dept.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "departments", "outer_alias": "catg", "inner_alias": "dept", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04507", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(value, status, code, level)\n orders(level, name, salary, date)\nTask: Select salary from schedules where level exists in orders for the same code.\nSQL:", "sql": "SELECT salary FROM schedules AS schd\nWHERE level IN (\n SELECT level FROM orders AS ord\n WHERE ord.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "orders", "outer_alias": "schd", "inner_alias": "ord", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04508", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(status, date, type, value)\n employees(amount, id, date, code)\nTask: Find salary from staff where type appears in employees entries with matching type.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE type IN (\n SELECT type FROM employees AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "staff", "inner_table": "employees", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04509", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(amount, date, name, code)\n accounts(status, name, code, type)\nTask: Find id from projects where amount exceeds the count of salary from accounts for the same type.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE amount > (\n SELECT COUNT(salary) FROM accounts AS acct\n WHERE acct.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "accounts", "outer_alias": "prj", "inner_alias": "acct", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04510", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(amount, level, id, code)\n requests(amount, date, salary, level)\nTask: Select code from schedules where status exists in requests for the same level.\nSQL:", "sql": "SELECT code FROM schedules AS schd\nWHERE status IN (\n SELECT status FROM requests AS ordr\n WHERE ordr.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "requests", "outer_alias": "schd", "inner_alias": "ordr", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04511", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(salary, type, amount, name)\n customers(name, salary, date, code)\nTask: Find value from branches where salary exceeds the minimum salary from customers for the same status.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE salary > (\n SELECT MIN(salary) FROM customers AS cust\n WHERE cust.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "customers", "outer_alias": "brc", "inner_alias": "cust", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04512", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(type, status, date, name)\n tasks(salary, status, id, name)\nTask: Find salary from branches where value exceeds the average value from tasks for the same level.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE value > (\n SELECT AVG(value) FROM tasks AS tsk\n WHERE tsk.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "tasks", "outer_alias": "brc", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04513", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(code, level, type, status)\n regions(status, code, amount, name)\nTask: Retrieve amount from products with salary above the COUNT(amount) of regions rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE salary > (\n SELECT COUNT(amount) FROM regions AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04514", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(salary, name, level, status)\n invoices(id, status, salary, type)\nTask: Find amount from employees where salary exceeds the minimum salary from invoices for the same id.\nSQL:", "sql": "SELECT amount FROM employees AS emp\nWHERE salary > (\n SELECT MIN(salary) FROM invoices AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "invoices", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04515", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(code, salary, status, level)\n sales(value, level, salary, amount)\nTask: Find value from projects where value exceeds the count of amount from sales for the same id.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE value > (\n SELECT COUNT(amount) FROM sales AS sale\n WHERE sale.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "sales", "outer_alias": "prj", "inner_alias": "sale", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04516", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(code, amount, level, id)\n departments(status, salary, code, name)\nTask: Retrieve code from branches that have at least one corresponding entry in departments sharing the same status.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "departments", "outer_alias": "brc", "inner_alias": "dept", "proj_col": "code", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04517", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(status, date, code, level)\n employees(salary, name, amount, type)\nTask: Retrieve value from sales whose level is found in employees rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "employees", "outer_alias": "sale", "inner_alias": "emp", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04518", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(code, date, salary, level)\n categories(code, id, date, name)\nTask: Retrieve salary from employees that have at least one corresponding entry in categories sharing the same level.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.level = emp.level\n);", "metadata": {"outer_table": "employees", "inner_table": "categories", "outer_alias": "emp", "inner_alias": "catg", "proj_col": "salary", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04519", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(value, name, level, id)\n departments(code, type, amount, value)\nTask: Find name from sales where amount exceeds the count of value from departments for the same code.\nSQL:", "sql": "SELECT name FROM sales AS sale\nWHERE amount > (\n SELECT COUNT(value) FROM departments AS dept\n WHERE dept.code = sale.code\n);", "metadata": {"outer_table": "sales", "inner_table": "departments", "outer_alias": "sale", "inner_alias": "dept", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "sale.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04520", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(type, salary, amount, name)\n items(name, date, type, level)\nTask: Find value from tasks where a matching record exists in items with the same code.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "items", "outer_alias": "tsk", "inner_alias": "lne", "proj_col": "value", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04521", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(code, status, salary, name)\n regions(id, type, salary, amount)\nTask: Select salary from products where level exists in regions for the same type.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04522", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(code, type, date, amount)\n tasks(id, amount, code, name)\nTask: Find id from categories where value exceeds the total salary from tasks for the same status.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE value > (\n SELECT SUM(salary) FROM tasks AS tsk\n WHERE tsk.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "tasks", "outer_alias": "catg", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04523", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(salary, level, status, code)\n invoices(amount, level, id, date)\nTask: Find amount from managers where amount exceeds the maximum value from invoices for the same level.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE amount > (\n SELECT MAX(value) FROM invoices AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "managers", "inner_table": "invoices", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04524", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(level, salary, date, status)\n projects(status, name, value, code)\nTask: Find name from items where value exceeds the average amount from projects for the same code.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE value > (\n SELECT AVG(amount) FROM projects AS prj\n WHERE prj.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "projects", "outer_alias": "lne", "inner_alias": "prj", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04525", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(status, name, salary, code)\n managers(amount, value, date, status)\nTask: Retrieve id from requests that have at least one corresponding entry in managers sharing the same id.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "managers", "outer_alias": "ordr", "inner_alias": "mgr", "proj_col": "id", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04526", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(status, salary, code, amount)\n accounts(code, amount, date, id)\nTask: Select value from tasks where code exists in accounts for the same level.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE code IN (\n SELECT code FROM accounts AS acct\n WHERE acct.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "accounts", "outer_alias": "tsk", "inner_alias": "acct", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04527", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(value, name, level, date)\n branches(level, value, type, salary)\nTask: Find value from regions where a matching record exists in branches with the same id.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "branches", "outer_alias": "rgn", "inner_alias": "brc", "proj_col": "value", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04528", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(amount, salary, date, status)\n shipments(name, code, type, salary)\nTask: Retrieve code from employees whose status is found in shipments rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE status IN (\n SELECT status FROM shipments AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "shipments", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04529", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(amount, type, level, salary)\n transactions(amount, code, type, id)\nTask: Retrieve code from branches whose id is found in transactions rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE id IN (\n SELECT id FROM transactions AS txn\n WHERE txn.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "transactions", "outer_alias": "brc", "inner_alias": "txn", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04530", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(amount, name, level, code)\n customers(date, id, level, type)\nTask: Retrieve id from staff that have at least one corresponding entry in customers sharing the same level.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "customers", "outer_alias": "empl", "inner_alias": "cust", "proj_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04531", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(date, status, salary, id)\n categories(type, name, amount, level)\nTask: Find id from regions where value exceeds the maximum amount from categories for the same code.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE value > (\n SELECT MAX(amount) FROM categories AS catg\n WHERE catg.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "categories", "outer_alias": "rgn", "inner_alias": "catg", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04532", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(type, date, amount, name)\n staff(amount, salary, status, level)\nTask: Find code from regions where type appears in staff entries with matching level.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "staff", "outer_alias": "rgn", "inner_alias": "empl", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04533", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(level, code, name, type)\n managers(status, type, name, salary)\nTask: Find id from sales where value exceeds the count of value from managers for the same id.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE value > (\n SELECT COUNT(value) FROM managers AS mgr\n WHERE mgr.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04534", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(code, name, date, amount)\n departments(code, status, type, id)\nTask: Find value from shipments where a matching record exists in departments with the same status.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "departments", "outer_alias": "shp", "inner_alias": "dept", "proj_col": "value", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04535", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(date, amount, name, code)\n sales(amount, level, id, type)\nTask: Find value from orders where a matching record exists in sales with the same code.\nSQL:", "sql": "SELECT value FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "sales", "outer_alias": "ord", "inner_alias": "sale", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04536", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(type, status, date, level)\n employees(type, status, level, name)\nTask: Find salary from invoices where value exceeds the maximum salary from employees for the same level.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE value > (\n SELECT MAX(salary) FROM employees AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "employees", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04537", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(level, date, code, type)\n staff(type, code, salary, level)\nTask: Retrieve salary from customers whose id is found in staff rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE id IN (\n SELECT id FROM staff AS empl\n WHERE empl.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "staff", "outer_alias": "cust", "inner_alias": "empl", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04538", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(amount, type, code, name)\n items(status, type, value, name)\nTask: Find code from requests where type appears in items entries with matching id.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04539", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(date, id, name, amount)\n customers(type, value, name, code)\nTask: Find amount from tasks where a matching record exists in customers with the same type.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = tsk.type\n);", "metadata": {"outer_table": "tasks", "inner_table": "customers", "outer_alias": "tsk", "inner_alias": "cust", "proj_col": "amount", "join_col": "type", "correlated_ref": "tsk.type", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04540", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(date, value, id, status)\n shipments(type, salary, amount, status)\nTask: Find code from products where a matching record exists in shipments with the same type.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "shipments", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04541", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(code, status, name, level)\n accounts(status, amount, code, date)\nTask: Retrieve amount from transactions that have at least one corresponding entry in accounts sharing the same code.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "accounts", "outer_alias": "txn", "inner_alias": "acct", "proj_col": "amount", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04542", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(id, salary, status, type)\n managers(status, amount, code, value)\nTask: Retrieve code from accounts whose status is found in managers rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE status IN (\n SELECT status FROM managers AS mgr\n WHERE mgr.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "managers", "outer_alias": "acct", "inner_alias": "mgr", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04543", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(name, code, id, status)\n customers(date, amount, level, salary)\nTask: Retrieve code from sales that have at least one corresponding entry in customers sharing the same type.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "customers", "outer_alias": "sale", "inner_alias": "cust", "proj_col": "code", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04544", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(status, date, name, salary)\n staff(amount, code, date, status)\nTask: Find amount from regions where value exceeds the maximum amount from staff for the same code.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE value > (\n SELECT MAX(amount) FROM staff AS empl\n WHERE empl.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "staff", "outer_alias": "rgn", "inner_alias": "empl", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04545", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(name, type, salary, level)\n branches(date, code, level, salary)\nTask: Find code from projects where value exceeds the count of salary from branches for the same level.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE value > (\n SELECT COUNT(salary) FROM branches AS brc\n WHERE brc.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "branches", "outer_alias": "prj", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04546", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(salary, status, date, id)\n orders(salary, type, name, level)\nTask: Retrieve code from projects that have at least one corresponding entry in orders sharing the same id.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "code", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04547", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(amount, id, type, level)\n departments(amount, id, date, type)\nTask: Retrieve code from managers whose type is found in departments rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM departments AS dept\n WHERE dept.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "departments", "outer_alias": "mgr", "inner_alias": "dept", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04548", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(level, status, code, amount)\n staff(id, date, amount, status)\nTask: Find salary from invoices where type appears in staff entries with matching code.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM staff AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "staff", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04549", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(id, status, code, type)\n categories(amount, status, code, level)\nTask: Find id from items where status appears in categories entries with matching status.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE status IN (\n SELECT status FROM categories AS catg\n WHERE catg.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04550", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(level, salary, value, id)\n staff(level, value, id, type)\nTask: Find id from branches where value exceeds the count of value from staff for the same status.\nSQL:", "sql": "SELECT id FROM branches AS brc\nWHERE value > (\n SELECT COUNT(value) FROM staff AS empl\n WHERE empl.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "staff", "outer_alias": "brc", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04551", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(code, status, salary, amount)\n customers(status, id, salary, type)\nTask: Retrieve code from shipments that have at least one corresponding entry in customers sharing the same code.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "customers", "outer_alias": "shp", "inner_alias": "cust", "proj_col": "code", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04552", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(id, type, amount, status)\n tasks(id, code, date, status)\nTask: Retrieve code from managers whose code is found in tasks rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM managers AS mgr\nWHERE code IN (\n SELECT code FROM tasks AS tsk\n WHERE tsk.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "tasks", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04553", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(date, name, status, level)\n employees(code, amount, name, salary)\nTask: Find code from branches where value exceeds the average value from employees for the same level.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE value > (\n SELECT AVG(value) FROM employees AS emp\n WHERE emp.level = brc.level\n);", "metadata": {"outer_table": "branches", "inner_table": "employees", "outer_alias": "brc", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "brc.level", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04554", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(code, type, salary, date)\n regions(amount, type, salary, status)\nTask: Retrieve amount from schedules whose status is found in regions rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE status IN (\n SELECT status FROM regions AS rgn\n WHERE rgn.level = schd.level\n);", "metadata": {"outer_table": "schedules", "inner_table": "regions", "outer_alias": "schd", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "schd.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04555", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(name, code, date, amount)\n shipments(level, type, code, id)\nTask: Retrieve amount from departments that have at least one corresponding entry in shipments sharing the same code.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "shipments", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04556", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(date, name, type, amount)\n branches(amount, name, status, code)\nTask: Find value from departments where a matching record exists in branches with the same type.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "branches", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "value", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04557", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(date, value, id, level)\n managers(id, status, salary, level)\nTask: Retrieve salary from categories with salary above the MIN(value) of managers rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE salary > (\n SELECT MIN(value) FROM managers AS mgr\n WHERE mgr.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "managers", "outer_alias": "catg", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04558", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(type, name, amount, value)\n projects(date, status, id, amount)\nTask: Retrieve name from products that have at least one corresponding entry in projects sharing the same code.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "projects", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04559", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(amount, id, salary, status)\n items(id, level, date, name)\nTask: Select salary from products where type exists in items for the same code.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE type IN (\n SELECT type FROM items AS lne\n WHERE lne.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "items", "outer_alias": "prod", "inner_alias": "lne", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04560", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(type, salary, amount, value)\n staff(level, value, salary, id)\nTask: Find amount from items where value exceeds the maximum value from staff for the same level.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE value > (\n SELECT MAX(value) FROM staff AS empl\n WHERE empl.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "staff", "outer_alias": "lne", "inner_alias": "empl", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04561", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(level, amount, name, type)\n customers(value, type, name, level)\nTask: Find name from transactions where a matching record exists in customers with the same code.\nSQL:", "sql": "SELECT name FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "customers", "outer_alias": "txn", "inner_alias": "cust", "proj_col": "name", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04562", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(name, date, type, salary)\n customers(name, value, level, type)\nTask: Find salary from transactions where code appears in customers entries with matching id.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE code IN (\n SELECT code FROM customers AS cust\n WHERE cust.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "customers", "outer_alias": "txn", "inner_alias": "cust", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04563", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(salary, date, amount, level)\n regions(code, status, level, date)\nTask: Retrieve salary from tasks that have at least one corresponding entry in regions sharing the same level.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "regions", "outer_alias": "tsk", "inner_alias": "rgn", "proj_col": "salary", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04564", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(amount, value, date, status)\n categories(level, amount, status, name)\nTask: Find value from branches where a matching record exists in categories with the same code.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "categories", "outer_alias": "brc", "inner_alias": "catg", "proj_col": "value", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04565", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(id, date, status, code)\n items(id, amount, level, value)\nTask: Find code from requests where a matching record exists in items with the same code.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "items", "outer_alias": "ordr", "inner_alias": "lne", "proj_col": "code", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04566", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(code, id, salary, amount)\n orders(salary, date, level, name)\nTask: Select id from accounts where id exists in orders for the same code.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE id IN (\n SELECT id FROM orders AS ord\n WHERE ord.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "orders", "outer_alias": "acct", "inner_alias": "ord", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04567", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(name, status, code, salary)\n projects(level, id, status, code)\nTask: Retrieve id from customers with salary above the SUM(value) of projects rows sharing the same id.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE salary > (\n SELECT SUM(value) FROM projects AS prj\n WHERE prj.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "projects", "outer_alias": "cust", "inner_alias": "prj", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04568", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(name, amount, id, level)\n categories(level, code, type, status)\nTask: Select amount from orders where code exists in categories for the same level.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE code IN (\n SELECT code FROM categories AS catg\n WHERE catg.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "categories", "outer_alias": "ord", "inner_alias": "catg", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04569", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(level, code, value, status)\n managers(level, status, name, salary)\nTask: Retrieve value from customers whose id is found in managers rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE id IN (\n SELECT id FROM managers AS mgr\n WHERE mgr.type = cust.type\n);", "metadata": {"outer_table": "customers", "inner_table": "managers", "outer_alias": "cust", "inner_alias": "mgr", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "cust.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04570", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(name, value, type, salary)\n shipments(type, date, amount, salary)\nTask: Select id from employees where id exists in shipments for the same id.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE id IN (\n SELECT id FROM shipments AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "employees", "inner_table": "shipments", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04571", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(value, id, salary, level)\n regions(code, id, level, amount)\nTask: Find code from customers where value exceeds the average salary from regions for the same id.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE value > (\n SELECT AVG(salary) FROM regions AS rgn\n WHERE rgn.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04572", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(date, level, amount, status)\n schedules(type, name, id, status)\nTask: Find name from staff where type appears in schedules entries with matching level.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "schedules", "outer_alias": "empl", "inner_alias": "schd", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04573", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(date, amount, type, status)\n shipments(value, date, code, amount)\nTask: Select name from invoices where level exists in shipments for the same code.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE level IN (\n SELECT level FROM shipments AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04574", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(id, amount, salary, type)\n tasks(name, status, value, salary)\nTask: Find value from transactions where amount exceeds the average salary from tasks for the same id.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE amount > (\n SELECT AVG(salary) FROM tasks AS tsk\n WHERE tsk.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "tasks", "outer_alias": "txn", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04575", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(level, id, status, value)\n tasks(code, amount, date, level)\nTask: Retrieve id from shipments that have at least one corresponding entry in tasks sharing the same level.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "id", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04576", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(value, name, salary, type)\n regions(amount, type, status, code)\nTask: Find value from products where level appears in regions entries with matching type.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04577", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(value, level, salary, date)\n staff(value, code, name, id)\nTask: Select code from projects where id exists in staff for the same id.\nSQL:", "sql": "SELECT code FROM projects AS prj\nWHERE id IN (\n SELECT id FROM staff AS empl\n WHERE empl.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "staff", "outer_alias": "prj", "inner_alias": "empl", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04578", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(level, value, amount, code)\n invoices(date, status, salary, level)\nTask: Find amount from requests where a matching record exists in invoices with the same id.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "invoices", "outer_alias": "ordr", "inner_alias": "inv", "proj_col": "amount", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04579", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(value, name, status, amount)\n managers(name, code, type, status)\nTask: Find salary from departments where a matching record exists in managers with the same level.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "managers", "outer_alias": "dept", "inner_alias": "mgr", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04580", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(status, date, code, id)\n shipments(level, salary, code, status)\nTask: Find value from sales where status appears in shipments entries with matching status.\nSQL:", "sql": "SELECT value FROM sales AS sale\nWHERE status IN (\n SELECT status FROM shipments AS shp\n WHERE shp.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "shipments", "outer_alias": "sale", "inner_alias": "shp", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04581", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(salary, value, name, level)\n orders(type, level, amount, id)\nTask: Find amount from accounts where a matching record exists in orders with the same level.\nSQL:", "sql": "SELECT amount FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "orders", "outer_alias": "acct", "inner_alias": "ord", "proj_col": "amount", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04582", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(status, id, date, amount)\n items(value, code, name, level)\nTask: Find name from products where id appears in items entries with matching code.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE id IN (\n SELECT id FROM items AS lne\n WHERE lne.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "items", "outer_alias": "prod", "inner_alias": "lne", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04583", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(date, code, salary, id)\n products(type, amount, status, id)\nTask: Find name from requests where value exceeds the average amount from products for the same code.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE value > (\n SELECT AVG(amount) FROM products AS prod\n WHERE prod.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "products", "outer_alias": "ordr", "inner_alias": "prod", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04584", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(code, name, level, salary)\n tasks(type, name, date, value)\nTask: Find id from requests where value exceeds the minimum amount from tasks for the same code.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE value > (\n SELECT MIN(amount) FROM tasks AS tsk\n WHERE tsk.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "tasks", "outer_alias": "ordr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04585", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(date, name, type, level)\n transactions(code, date, id, status)\nTask: Retrieve value from departments whose id is found in transactions rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE id IN (\n SELECT id FROM transactions AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "transactions", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04586", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(name, id, level, date)\n schedules(status, amount, code, value)\nTask: Find name from categories where id appears in schedules entries with matching code.\nSQL:", "sql": "SELECT name FROM categories AS catg\nWHERE id IN (\n SELECT id FROM schedules AS schd\n WHERE schd.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "schedules", "outer_alias": "catg", "inner_alias": "schd", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04587", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(level, salary, id, name)\n requests(amount, status, name, date)\nTask: Find amount from departments where value exceeds the maximum value from requests for the same status.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE value > (\n SELECT MAX(value) FROM requests AS ordr\n WHERE ordr.status = dept.status\n);", "metadata": {"outer_table": "departments", "inner_table": "requests", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04588", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(amount, salary, code, id)\n employees(amount, value, level, date)\nTask: Find value from projects where salary exceeds the maximum value from employees for the same id.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE salary > (\n SELECT MAX(value) FROM employees AS emp\n WHERE emp.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "employees", "outer_alias": "prj", "inner_alias": "emp", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04589", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(salary, code, level, value)\n accounts(value, amount, type, salary)\nTask: Find name from requests where amount exceeds the minimum value from accounts for the same id.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE amount > (\n SELECT MIN(value) FROM accounts AS acct\n WHERE acct.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "accounts", "outer_alias": "ordr", "inner_alias": "acct", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04590", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(level, amount, type, salary)\n branches(salary, amount, id, level)\nTask: Retrieve name from departments with value above the COUNT(amount) of branches rows sharing the same id.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE value > (\n SELECT COUNT(amount) FROM branches AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "branches", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04591", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(name, value, id, amount)\n projects(code, date, type, value)\nTask: Retrieve salary from tasks that have at least one corresponding entry in projects sharing the same code.\nSQL:", "sql": "SELECT salary FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "projects", "outer_alias": "tsk", "inner_alias": "prj", "proj_col": "salary", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04592", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(date, amount, value, code)\n products(value, type, id, code)\nTask: Retrieve id from items whose id is found in products rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "products", "outer_alias": "lne", "inner_alias": "prod", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04593", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(status, type, salary, value)\n invoices(value, amount, type, code)\nTask: Find value from tasks where value exceeds the minimum amount from invoices for the same level.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE value > (\n SELECT MIN(amount) FROM invoices AS inv\n WHERE inv.level = tsk.level\n);", "metadata": {"outer_table": "tasks", "inner_table": "invoices", "outer_alias": "tsk", "inner_alias": "inv", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "tsk.level", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04594", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(level, value, id, name)\n regions(amount, level, status, type)\nTask: Retrieve salary from sales that have at least one corresponding entry in regions sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "regions", "outer_alias": "sale", "inner_alias": "rgn", "proj_col": "salary", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04595", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(name, amount, status, value)\n branches(level, code, salary, type)\nTask: Find code from items where amount exceeds the total salary from branches for the same code.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE amount > (\n SELECT SUM(salary) FROM branches AS brc\n WHERE brc.code = lne.code\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "lne.code", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04596", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(level, id, name, value)\n orders(value, level, type, id)\nTask: Find id from requests where a matching record exists in orders with the same code.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "orders", "outer_alias": "ordr", "inner_alias": "ord", "proj_col": "id", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04597", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(type, value, status, level)\n branches(value, id, type, date)\nTask: Retrieve name from invoices that have at least one corresponding entry in branches sharing the same level.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "branches", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04598", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(code, date, type, value)\n projects(value, code, name, status)\nTask: Find id from items where value exceeds the total value from projects for the same id.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE value > (\n SELECT SUM(value) FROM projects AS prj\n WHERE prj.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "projects", "outer_alias": "lne", "inner_alias": "prj", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04599", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(value, type, id, date)\n accounts(code, value, date, status)\nTask: Retrieve id from items that have at least one corresponding entry in accounts sharing the same id.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM accounts AS acct\n WHERE acct.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "accounts", "outer_alias": "lne", "inner_alias": "acct", "proj_col": "id", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04600", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(id, amount, name, salary)\n branches(name, date, type, code)\nTask: Select id from shipments where code exists in branches for the same status.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "branches", "outer_alias": "shp", "inner_alias": "brc", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04601", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(value, level, salary, name)\n categories(id, type, name, amount)\nTask: Find id from customers where a matching record exists in categories with the same status.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "categories", "outer_alias": "cust", "inner_alias": "catg", "proj_col": "id", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04602", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(status, name, level, salary)\n requests(status, type, salary, level)\nTask: Retrieve amount from projects that have at least one corresponding entry in requests sharing the same status.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "amount", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04603", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(date, salary, code, level)\n managers(level, type, code, id)\nTask: Find value from employees where a matching record exists in managers with the same status.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "managers", "outer_alias": "emp", "inner_alias": "mgr", "proj_col": "value", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04604", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(salary, code, name, type)\n tasks(value, amount, level, code)\nTask: Retrieve salary from departments that have at least one corresponding entry in tasks sharing the same id.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = dept.id\n);", "metadata": {"outer_table": "departments", "inner_table": "tasks", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "salary", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04605", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(status, type, level, amount)\n employees(level, value, status, name)\nTask: Retrieve value from shipments with amount above the MAX(salary) of employees rows sharing the same status.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE amount > (\n SELECT MAX(salary) FROM employees AS emp\n WHERE emp.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "employees", "outer_alias": "shp", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04606", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(code, status, type, level)\n items(code, name, value, type)\nTask: Find amount from regions where value exceeds the count of salary from items for the same code.\nSQL:", "sql": "SELECT amount FROM regions AS rgn\nWHERE value > (\n SELECT COUNT(salary) FROM items AS lne\n WHERE lne.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "items", "outer_alias": "rgn", "inner_alias": "lne", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04607", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(code, value, name, type)\n branches(value, salary, id, code)\nTask: Retrieve code from transactions with salary above the MAX(amount) of branches rows sharing the same status.\nSQL:", "sql": "SELECT code FROM transactions AS txn\nWHERE salary > (\n SELECT MAX(amount) FROM branches AS brc\n WHERE brc.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "branches", "outer_alias": "txn", "inner_alias": "brc", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04608", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(value, date, status, id)\n products(name, level, status, date)\nTask: Retrieve amount from orders that have at least one corresponding entry in products sharing the same id.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "products", "outer_alias": "ord", "inner_alias": "prod", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04609", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(amount, value, code, id)\n projects(type, status, name, level)\nTask: Retrieve salary from requests whose code is found in projects rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "projects", "outer_alias": "ordr", "inner_alias": "prj", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04610", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(id, level, value, name)\n categories(amount, code, level, date)\nTask: Find id from requests where amount exceeds the minimum salary from categories for the same id.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE amount > (\n SELECT MIN(salary) FROM categories AS catg\n WHERE catg.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "categories", "outer_alias": "ordr", "inner_alias": "catg", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04611", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n sales (alias: sale)(name, salary, id, type)\n managers(id, date, type, value)\nTask: Find salary from sales where salary exceeds the average value from managers for the same status.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE salary > (\n SELECT AVG(value) FROM managers AS mgr\n WHERE mgr.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04612", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(id, code, status, name)\n branches(code, amount, type, value)\nTask: Retrieve salary from departments with salary above the COUNT(value) of branches rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM departments AS dept\nWHERE salary > (\n SELECT COUNT(value) FROM branches AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "branches", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04613", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(date, amount, level, value)\n invoices(status, date, level, name)\nTask: Select value from regions where type exists in invoices for the same type.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "invoices", "outer_alias": "rgn", "inner_alias": "inv", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04614", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(date, status, value, level)\n regions(value, salary, status, code)\nTask: Find code from shipments where a matching record exists in regions with the same level.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "regions", "outer_alias": "shp", "inner_alias": "rgn", "proj_col": "code", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04615", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(value, id, date, level)\n branches(status, name, date, level)\nTask: Find amount from projects where amount exceeds the count of amount from branches for the same status.\nSQL:", "sql": "SELECT amount FROM projects AS prj\nWHERE amount > (\n SELECT COUNT(amount) FROM branches AS brc\n WHERE brc.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "branches", "outer_alias": "prj", "inner_alias": "brc", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04616", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(type, amount, date, value)\n branches(level, type, date, salary)\nTask: Retrieve salary from products whose status is found in branches rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "products", "inner_table": "branches", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04617", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(date, name, amount, value)\n orders(amount, type, level, name)\nTask: Find value from projects where salary exceeds the maximum salary from orders for the same level.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE salary > (\n SELECT MAX(salary) FROM orders AS ord\n WHERE ord.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "orders", "outer_alias": "prj", "inner_alias": "ord", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04618", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(value, date, code, salary)\n categories(date, type, amount, id)\nTask: Retrieve name from products that have at least one corresponding entry in categories sharing the same code.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "categories", "outer_alias": "prod", "inner_alias": "catg", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04619", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(type, amount, id, status)\n staff(amount, code, date, level)\nTask: Select name from accounts where level exists in staff for the same code.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.code = acct.code\n);", "metadata": {"outer_table": "accounts", "inner_table": "staff", "outer_alias": "acct", "inner_alias": "empl", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "acct.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04620", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(value, salary, name, code)\n invoices(amount, value, date, type)\nTask: Find value from products where a matching record exists in invoices with the same status.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "invoices", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "value", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04621", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(name, salary, id, amount)\n tasks(id, salary, name, amount)\nTask: Find value from items where value exceeds the average amount from tasks for the same type.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE value > (\n SELECT AVG(amount) FROM tasks AS tsk\n WHERE tsk.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "tasks", "outer_alias": "lne", "inner_alias": "tsk", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04622", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(level, code, date, type)\n items(salary, type, status, amount)\nTask: Find value from transactions where a matching record exists in items with the same id.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.id = txn.id\n);", "metadata": {"outer_table": "transactions", "inner_table": "items", "outer_alias": "txn", "inner_alias": "lne", "proj_col": "value", "join_col": "id", "correlated_ref": "txn.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04623", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(level, name, value, id)\n projects(salary, amount, name, level)\nTask: Retrieve id from accounts with amount above the SUM(salary) of projects rows sharing the same id.\nSQL:", "sql": "SELECT id FROM accounts AS acct\nWHERE amount > (\n SELECT SUM(salary) FROM projects AS prj\n WHERE prj.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "projects", "outer_alias": "acct", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04624", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(id, amount, name, value)\n items(id, value, level, salary)\nTask: Retrieve amount from schedules with value above the MIN(salary) of items rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE value > (\n SELECT MIN(salary) FROM items AS lne\n WHERE lne.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "items", "outer_alias": "schd", "inner_alias": "lne", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04625", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(date, status, value, level)\n transactions(date, id, code, name)\nTask: Retrieve amount from tasks with value above the MIN(amount) of transactions rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE value > (\n SELECT MIN(amount) FROM transactions AS txn\n WHERE txn.code = tsk.code\n);", "metadata": {"outer_table": "tasks", "inner_table": "transactions", "outer_alias": "tsk", "inner_alias": "txn", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "tsk.code", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04626", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n schedules (alias: schd)(amount, type, id, value)\n shipments(code, amount, level, type)\nTask: Retrieve name from schedules whose code is found in shipments rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM schedules AS schd\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "shipments", "outer_alias": "schd", "inner_alias": "shp", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04627", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(id, date, value, status)\n products(date, name, value, id)\nTask: Select amount from departments where code exists in products for the same type.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE code IN (\n SELECT code FROM products AS prod\n WHERE prod.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "products", "outer_alias": "dept", "inner_alias": "prod", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04628", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(date, code, id, name)\n employees(salary, date, code, id)\nTask: Select value from departments where level exists in employees for the same level.\nSQL:", "sql": "SELECT value FROM departments AS dept\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "employees", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04629", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(date, amount, status, salary)\n categories(date, level, value, type)\nTask: Retrieve salary from sales whose level is found in categories rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE level IN (\n SELECT level FROM categories AS catg\n WHERE catg.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "categories", "outer_alias": "sale", "inner_alias": "catg", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04630", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(level, code, amount, name)\n categories(type, level, status, amount)\nTask: Retrieve id from invoices that have at least one corresponding entry in categories sharing the same level.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "categories", "outer_alias": "inv", "inner_alias": "catg", "proj_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04631", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n customers (alias: cust)(name, level, date, id)\n tasks(status, value, id, name)\nTask: Retrieve value from customers with amount above the AVG(amount) of tasks rows sharing the same code.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE amount > (\n SELECT AVG(amount) FROM tasks AS tsk\n WHERE tsk.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "tasks", "outer_alias": "cust", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04632", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(date, amount, salary, type)\n projects(salary, value, amount, date)\nTask: Retrieve name from invoices that have at least one corresponding entry in projects sharing the same type.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "projects", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04633", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(code, name, id, salary)\n employees(name, value, id, type)\nTask: Retrieve value from branches with amount above the MAX(salary) of employees rows sharing the same status.\nSQL:", "sql": "SELECT value FROM branches AS brc\nWHERE amount > (\n SELECT MAX(salary) FROM employees AS emp\n WHERE emp.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "employees", "outer_alias": "brc", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04634", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(salary, name, level, status)\n requests(date, level, code, salary)\nTask: Retrieve id from projects with salary above the COUNT(salary) of requests rows sharing the same id.\nSQL:", "sql": "SELECT id FROM projects AS prj\nWHERE salary > (\n SELECT COUNT(salary) FROM requests AS ordr\n WHERE ordr.id = prj.id\n);", "metadata": {"outer_table": "projects", "inner_table": "requests", "outer_alias": "prj", "inner_alias": "ordr", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prj.id", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04635", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n departments (alias: dept)(salary, name, amount, date)\n schedules(date, status, code, salary)\nTask: Find amount from departments where a matching record exists in schedules with the same level.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "schedules", "outer_alias": "dept", "inner_alias": "schd", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04636", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(value, name, id, status)\n requests(type, amount, status, date)\nTask: Find salary from orders where value exceeds the total amount from requests for the same status.\nSQL:", "sql": "SELECT salary FROM orders AS ord\nWHERE value > (\n SELECT SUM(amount) FROM requests AS ordr\n WHERE ordr.status = ord.status\n);", "metadata": {"outer_table": "orders", "inner_table": "requests", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04637", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(code, name, salary, id)\n employees(level, id, type, date)\nTask: Find code from customers where level appears in employees entries with matching level.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE level IN (\n SELECT level FROM employees AS emp\n WHERE emp.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "employees", "outer_alias": "cust", "inner_alias": "emp", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04638", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(name, level, id, status)\n shipments(type, value, code, name)\nTask: Retrieve id from sales whose code is found in shipments rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE code IN (\n SELECT code FROM shipments AS shp\n WHERE shp.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "shipments", "outer_alias": "sale", "inner_alias": "shp", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04639", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(code, value, date, salary)\n accounts(value, level, name, id)\nTask: Retrieve id from staff with value above the AVG(amount) of accounts rows sharing the same id.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE value > (\n SELECT AVG(amount) FROM accounts AS acct\n WHERE acct.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "accounts", "outer_alias": "empl", "inner_alias": "acct", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04640", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(value, salary, status, amount)\n accounts(code, value, amount, status)\nTask: Find id from invoices where type appears in accounts entries with matching type.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "accounts", "outer_alias": "inv", "inner_alias": "acct", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04641", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(name, id, salary, amount)\n transactions(date, id, value, amount)\nTask: Retrieve value from products that have at least one corresponding entry in transactions sharing the same level.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "value", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04642", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(code, name, type, amount)\n products(type, amount, salary, status)\nTask: Retrieve id from managers that have at least one corresponding entry in products sharing the same status.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "products", "outer_alias": "mgr", "inner_alias": "prod", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04643", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(name, amount, status, type)\n branches(code, type, name, status)\nTask: Retrieve salary from requests with amount above the MAX(amount) of branches rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM requests AS ordr\nWHERE amount > (\n SELECT MAX(amount) FROM branches AS brc\n WHERE brc.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "branches", "outer_alias": "ordr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04644", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(code, type, id, status)\n schedules(level, name, type, date)\nTask: Retrieve salary from regions that have at least one corresponding entry in schedules sharing the same id.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "schedules", "outer_alias": "rgn", "inner_alias": "schd", "proj_col": "salary", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04645", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(value, code, status, name)\n invoices(code, id, value, type)\nTask: Find id from staff where a matching record exists in invoices with the same code.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "invoices", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04646", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(value, level, name, salary)\n items(status, type, date, name)\nTask: Find amount from invoices where salary exceeds the total salary from items for the same id.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE salary > (\n SELECT SUM(salary) FROM items AS lne\n WHERE lne.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "items", "outer_alias": "inv", "inner_alias": "lne", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04647", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(date, code, status, type)\n transactions(status, id, code, type)\nTask: Retrieve amount from customers that have at least one corresponding entry in transactions sharing the same status.\nSQL:", "sql": "SELECT amount FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.status = cust.status\n);", "metadata": {"outer_table": "customers", "inner_table": "transactions", "outer_alias": "cust", "inner_alias": "txn", "proj_col": "amount", "join_col": "status", "correlated_ref": "cust.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04648", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(code, salary, value, level)\n sales(type, value, name, level)\nTask: Select salary from categories where level exists in sales for the same status.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE level IN (\n SELECT level FROM sales AS sale\n WHERE sale.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "sales", "outer_alias": "catg", "inner_alias": "sale", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04649", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(date, id, code, name)\n shipments(salary, amount, level, id)\nTask: Retrieve value from tasks that have at least one corresponding entry in shipments sharing the same id.\nSQL:", "sql": "SELECT value FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "shipments", "outer_alias": "tsk", "inner_alias": "shp", "proj_col": "value", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04650", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(date, name, code, type)\n employees(level, code, status, salary)\nTask: Find name from items where amount exceeds the average amount from employees for the same id.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE amount > (\n SELECT AVG(amount) FROM employees AS emp\n WHERE emp.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "employees", "outer_alias": "lne", "inner_alias": "emp", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04651", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(salary, name, type, code)\n employees(value, name, amount, code)\nTask: Find amount from sales where a matching record exists in employees with the same level.\nSQL:", "sql": "SELECT amount FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.level = sale.level\n);", "metadata": {"outer_table": "sales", "inner_table": "employees", "outer_alias": "sale", "inner_alias": "emp", "proj_col": "amount", "join_col": "level", "correlated_ref": "sale.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04652", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(amount, name, code, level)\n orders(id, value, salary, status)\nTask: Find name from items where id appears in orders entries with matching level.\nSQL:", "sql": "SELECT name FROM items AS lne\nWHERE id IN (\n SELECT id FROM orders AS ord\n WHERE ord.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "orders", "outer_alias": "lne", "inner_alias": "ord", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04653", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(type, amount, level, salary)\n staff(type, name, value, status)\nTask: Find id from customers where a matching record exists in staff with the same id.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "staff", "outer_alias": "cust", "inner_alias": "empl", "proj_col": "id", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04654", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(level, value, id, salary)\n categories(code, amount, type, id)\nTask: Retrieve name from staff that have at least one corresponding entry in categories sharing the same level.\nSQL:", "sql": "SELECT name FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "categories", "outer_alias": "empl", "inner_alias": "catg", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04655", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(salary, date, amount, level)\n tasks(amount, type, level, salary)\nTask: Find value from requests where a matching record exists in tasks with the same level.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = ordr.level\n);", "metadata": {"outer_table": "requests", "inner_table": "tasks", "outer_alias": "ordr", "inner_alias": "tsk", "proj_col": "value", "join_col": "level", "correlated_ref": "ordr.level", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04656", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(type, salary, level, code)\n regions(type, status, salary, level)\nTask: Find salary from shipments where salary exceeds the total amount from regions for the same level.\nSQL:", "sql": "SELECT salary FROM shipments AS shp\nWHERE salary > (\n SELECT SUM(amount) FROM regions AS rgn\n WHERE rgn.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "regions", "outer_alias": "shp", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04657", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(amount, date, code, salary)\n transactions(id, salary, level, type)\nTask: Retrieve code from products that have at least one corresponding entry in transactions sharing the same type.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "transactions", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04658", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(date, code, value, status)\n employees(type, id, status, name)\nTask: Find name from branches where a matching record exists in employees with the same type.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "employees", "outer_alias": "brc", "inner_alias": "emp", "proj_col": "name", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04659", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(date, level, id, status)\n sales(amount, status, id, salary)\nTask: Select value from customers where status exists in sales for the same level.\nSQL:", "sql": "SELECT value FROM customers AS cust\nWHERE status IN (\n SELECT status FROM sales AS sale\n WHERE sale.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "sales", "outer_alias": "cust", "inner_alias": "sale", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04660", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(amount, salary, code, id)\n transactions(date, salary, value, status)\nTask: Select code from customers where status exists in transactions for the same level.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE status IN (\n SELECT status FROM transactions AS txn\n WHERE txn.level = cust.level\n);", "metadata": {"outer_table": "customers", "inner_table": "transactions", "outer_alias": "cust", "inner_alias": "txn", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "cust.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04661", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(date, level, salary, code)\n tasks(status, name, id, code)\nTask: Retrieve amount from invoices that have at least one corresponding entry in tasks sharing the same level.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "tasks", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "amount", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04662", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(value, code, amount, type)\n sales(date, id, value, type)\nTask: Retrieve value from requests with value above the AVG(value) of sales rows sharing the same type.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE value > (\n SELECT AVG(value) FROM sales AS sale\n WHERE sale.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "sales", "outer_alias": "ordr", "inner_alias": "sale", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04663", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(id, value, salary, level)\n projects(status, value, type, date)\nTask: Retrieve name from requests that have at least one corresponding entry in projects sharing the same code.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "projects", "outer_alias": "ordr", "inner_alias": "prj", "proj_col": "name", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04664", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(status, date, salary, id)\n categories(salary, type, status, id)\nTask: Select amount from departments where type exists in categories for the same level.\nSQL:", "sql": "SELECT amount FROM departments AS dept\nWHERE type IN (\n SELECT type FROM categories AS catg\n WHERE catg.level = dept.level\n);", "metadata": {"outer_table": "departments", "inner_table": "categories", "outer_alias": "dept", "inner_alias": "catg", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04665", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(amount, value, date, type)\n managers(amount, level, type, salary)\nTask: Find id from regions where a matching record exists in managers with the same id.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "managers", "outer_alias": "rgn", "inner_alias": "mgr", "proj_col": "id", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04666", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(name, date, value, level)\n regions(level, amount, status, salary)\nTask: Retrieve code from tasks with value above the COUNT(value) of regions rows sharing the same id.\nSQL:", "sql": "SELECT code FROM tasks AS tsk\nWHERE value > (\n SELECT COUNT(value) FROM regions AS rgn\n WHERE rgn.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "regions", "outer_alias": "tsk", "inner_alias": "rgn", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04667", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(code, type, value, name)\n projects(level, code, value, salary)\nTask: Retrieve code from items that have at least one corresponding entry in projects sharing the same status.\nSQL:", "sql": "SELECT code FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "projects", "outer_alias": "lne", "inner_alias": "prj", "proj_col": "code", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04668", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(type, id, value, amount)\n managers(id, code, salary, value)\nTask: Find salary from products where value exceeds the maximum value from managers for the same status.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE value > (\n SELECT MAX(value) FROM managers AS mgr\n WHERE mgr.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "managers", "outer_alias": "prod", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04669", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(level, amount, salary, type)\n invoices(level, name, value, id)\nTask: Find code from customers where level appears in invoices entries with matching id.\nSQL:", "sql": "SELECT code FROM customers AS cust\nWHERE level IN (\n SELECT level FROM invoices AS inv\n WHERE inv.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "invoices", "outer_alias": "cust", "inner_alias": "inv", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04670", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(status, type, salary, date)\n transactions(type, salary, date, status)\nTask: Find name from invoices where amount exceeds the count of amount from transactions for the same type.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE amount > (\n SELECT COUNT(amount) FROM transactions AS txn\n WHERE txn.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "transactions", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04671", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(value, level, status, id)\n customers(salary, id, level, date)\nTask: Retrieve code from departments with amount above the COUNT(salary) of customers rows sharing the same type.\nSQL:", "sql": "SELECT code FROM departments AS dept\nWHERE amount > (\n SELECT COUNT(salary) FROM customers AS cust\n WHERE cust.type = dept.type\n);", "metadata": {"outer_table": "departments", "inner_table": "customers", "outer_alias": "dept", "inner_alias": "cust", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04672", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(salary, name, code, id)\n requests(salary, level, type, amount)\nTask: Retrieve value from staff with value above the AVG(salary) of requests rows sharing the same id.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE value > (\n SELECT AVG(salary) FROM requests AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "requests", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04673", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n shipments (alias: shp)(salary, id, code, name)\n requests(amount, code, status, date)\nTask: Find amount from shipments where level appears in requests entries with matching code.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE level IN (\n SELECT level FROM requests AS ordr\n WHERE ordr.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "requests", "outer_alias": "shp", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04674", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(level, status, type, value)\n orders(level, status, code, type)\nTask: Find amount from tasks where a matching record exists in orders with the same id.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "orders", "outer_alias": "tsk", "inner_alias": "ord", "proj_col": "amount", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04675", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n customers (alias: cust)(status, name, date, amount)\n sales(id, date, salary, amount)\nTask: Find salary from customers where type appears in sales entries with matching id.\nSQL:", "sql": "SELECT salary FROM customers AS cust\nWHERE type IN (\n SELECT type FROM sales AS sale\n WHERE sale.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "sales", "outer_alias": "cust", "inner_alias": "sale", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04676", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(level, status, name, date)\n branches(amount, salary, code, id)\nTask: Find salary from regions where amount exceeds the total value from branches for the same code.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE amount > (\n SELECT SUM(value) FROM branches AS brc\n WHERE brc.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "branches", "outer_alias": "rgn", "inner_alias": "brc", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04677", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(code, type, date, level)\n managers(date, id, type, amount)\nTask: Retrieve code from branches that have at least one corresponding entry in managers sharing the same id.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "managers", "outer_alias": "brc", "inner_alias": "mgr", "proj_col": "code", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04678", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n regions (alias: rgn)(status, code, name, level)\n employees(name, value, salary, date)\nTask: Find salary from regions where code appears in employees entries with matching type.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE code IN (\n SELECT code FROM employees AS emp\n WHERE emp.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "employees", "outer_alias": "rgn", "inner_alias": "emp", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04679", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(type, status, value, id)\n staff(type, salary, status, amount)\nTask: Retrieve name from products whose level is found in staff rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM products AS prod\nWHERE level IN (\n SELECT level FROM staff AS empl\n WHERE empl.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "staff", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04680", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(level, status, id, salary)\n regions(salary, amount, value, name)\nTask: Find code from categories where a matching record exists in regions with the same level.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "code", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04681", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n projects (alias: prj)(value, type, code, date)\n schedules(code, status, id, value)\nTask: Retrieve salary from projects with amount above the MIN(salary) of schedules rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM projects AS prj\nWHERE amount > (\n SELECT MIN(salary) FROM schedules AS schd\n WHERE schd.type = prj.type\n);", "metadata": {"outer_table": "projects", "inner_table": "schedules", "outer_alias": "prj", "inner_alias": "schd", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prj.type", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04682", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(name, amount, level, type)\n products(amount, code, date, value)\nTask: Find id from shipments where salary exceeds the minimum salary from products for the same level.\nSQL:", "sql": "SELECT id FROM shipments AS shp\nWHERE salary > (\n SELECT MIN(salary) FROM products AS prod\n WHERE prod.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "products", "outer_alias": "shp", "inner_alias": "prod", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04683", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(type, date, salary, id)\n schedules(type, code, name, amount)\nTask: Retrieve name from branches that have at least one corresponding entry in schedules sharing the same type.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "schedules", "outer_alias": "brc", "inner_alias": "schd", "proj_col": "name", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04684", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n staff (alias: empl)(salary, status, code, id)\n regions(type, code, level, amount)\nTask: Find amount from staff where a matching record exists in regions with the same id.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "regions", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "amount", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04685", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(amount, name, id, code)\n shipments(level, value, amount, date)\nTask: Retrieve id from managers that have at least one corresponding entry in shipments sharing the same status.\nSQL:", "sql": "SELECT id FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.status = mgr.status\n);", "metadata": {"outer_table": "managers", "inner_table": "shipments", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04686", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(date, code, name, salary)\n staff(id, status, amount, name)\nTask: Retrieve name from requests that have at least one corresponding entry in staff sharing the same type.\nSQL:", "sql": "SELECT name FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "staff", "outer_alias": "ordr", "inner_alias": "empl", "proj_col": "name", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04687", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(value, name, code, level)\n categories(code, id, amount, level)\nTask: Retrieve value from accounts that have at least one corresponding entry in categories sharing the same id.\nSQL:", "sql": "SELECT value FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "categories", "outer_alias": "acct", "inner_alias": "catg", "proj_col": "value", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04688", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(value, id, type, salary)\n staff(type, value, date, level)\nTask: Retrieve amount from requests with salary above the MAX(value) of staff rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE salary > (\n SELECT MAX(value) FROM staff AS empl\n WHERE empl.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "staff", "outer_alias": "ordr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04689", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(status, date, level, id)\n transactions(name, level, type, code)\nTask: Find id from staff where value exceeds the total amount from transactions for the same level.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE value > (\n SELECT SUM(amount) FROM transactions AS txn\n WHERE txn.level = empl.level\n);", "metadata": {"outer_table": "staff", "inner_table": "transactions", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04690", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(date, type, level, name)\n managers(status, id, value, type)\nTask: Find value from regions where a matching record exists in managers with the same code.\nSQL:", "sql": "SELECT value FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "managers", "outer_alias": "rgn", "inner_alias": "mgr", "proj_col": "value", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04691", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(date, code, amount, level)\n items(type, status, value, level)\nTask: Find id from transactions where salary exceeds the count of value from items for the same status.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE salary > (\n SELECT COUNT(value) FROM items AS lne\n WHERE lne.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "items", "outer_alias": "txn", "inner_alias": "lne", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04692", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n branches (alias: brc)(level, name, code, amount)\n accounts(name, status, code, amount)\nTask: Retrieve amount from branches with salary above the AVG(value) of accounts rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM branches AS brc\nWHERE salary > (\n SELECT AVG(value) FROM accounts AS acct\n WHERE acct.type = brc.type\n);", "metadata": {"outer_table": "branches", "inner_table": "accounts", "outer_alias": "brc", "inner_alias": "acct", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "brc.type", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04693", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(type, id, code, status)\n schedules(status, type, salary, level)\nTask: Retrieve name from projects that have at least one corresponding entry in schedules sharing the same status.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "schedules", "outer_alias": "prj", "inner_alias": "schd", "proj_col": "name", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04694", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(name, salary, type, value)\n tasks(type, salary, level, status)\nTask: Find name from employees where a matching record exists in tasks with the same type.\nSQL:", "sql": "SELECT name FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "tasks", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "name", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04695", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n staff (alias: empl)(date, name, type, code)\n projects(date, salary, code, id)\nTask: Retrieve value from staff with salary above the MAX(amount) of projects rows sharing the same code.\nSQL:", "sql": "SELECT value FROM staff AS empl\nWHERE salary > (\n SELECT MAX(amount) FROM projects AS prj\n WHERE prj.code = empl.code\n);", "metadata": {"outer_table": "staff", "inner_table": "projects", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04696", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n managers (alias: mgr)(value, id, status, salary)\n regions(date, id, level, amount)\nTask: Find salary from managers where value exceeds the total amount from regions for the same type.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE value > (\n SELECT SUM(amount) FROM regions AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "managers", "inner_table": "regions", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04697", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(id, date, type, code)\n branches(amount, level, date, salary)\nTask: Select id from items where status exists in branches for the same level.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE status IN (\n SELECT status FROM branches AS brc\n WHERE brc.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "branches", "outer_alias": "lne", "inner_alias": "brc", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04698", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(type, amount, name, status)\n tasks(level, code, amount, salary)\nTask: Retrieve name from regions that have at least one corresponding entry in tasks sharing the same id.\nSQL:", "sql": "SELECT name FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "tasks", "outer_alias": "rgn", "inner_alias": "tsk", "proj_col": "name", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04699", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(amount, type, name, level)\n managers(code, salary, amount, type)\nTask: Retrieve salary from sales whose code is found in managers rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales AS sale\nWHERE code IN (\n SELECT code FROM managers AS mgr\n WHERE mgr.type = sale.type\n);", "metadata": {"outer_table": "sales", "inner_table": "managers", "outer_alias": "sale", "inner_alias": "mgr", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "sale.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04700", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(value, code, level, salary)\n products(value, status, level, name)\nTask: Find salary from invoices where amount exceeds the minimum amount from products for the same status.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE amount > (\n SELECT MIN(amount) FROM products AS prod\n WHERE prod.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "products", "outer_alias": "inv", "inner_alias": "prod", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04701", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(name, status, type, code)\n projects(amount, salary, status, code)\nTask: Find id from schedules where a matching record exists in projects with the same code.\nSQL:", "sql": "SELECT id FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "projects", "outer_alias": "schd", "inner_alias": "prj", "proj_col": "id", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04702", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(date, id, type, amount)\n items(amount, salary, name, code)\nTask: Retrieve name from projects that have at least one corresponding entry in items sharing the same status.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM items AS lne\n WHERE lne.status = prj.status\n);", "metadata": {"outer_table": "projects", "inner_table": "items", "outer_alias": "prj", "inner_alias": "lne", "proj_col": "name", "join_col": "status", "correlated_ref": "prj.status", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04703", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(salary, status, date, type)\n transactions(value, name, salary, level)\nTask: Retrieve code from invoices that have at least one corresponding entry in transactions sharing the same id.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM transactions AS txn\n WHERE txn.id = inv.id\n);", "metadata": {"outer_table": "invoices", "inner_table": "transactions", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04704", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n orders (alias: ord)(status, type, name, level)\n shipments(id, level, status, type)\nTask: Find amount from orders where a matching record exists in shipments with the same code.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "shipments", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04705", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n requests (alias: ordr)(level, value, status, salary)\n transactions(date, status, value, amount)\nTask: Find id from requests where level appears in transactions entries with matching code.\nSQL:", "sql": "SELECT id FROM requests AS ordr\nWHERE level IN (\n SELECT level FROM transactions AS txn\n WHERE txn.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04706", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(type, name, code, salary)\n tasks(date, level, id, amount)\nTask: Find value from categories where type appears in tasks entries with matching level.\nSQL:", "sql": "SELECT value FROM categories AS catg\nWHERE type IN (\n SELECT type FROM tasks AS tsk\n WHERE tsk.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "tasks", "outer_alias": "catg", "inner_alias": "tsk", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04707", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(id, type, name, salary)\n staff(date, name, level, type)\nTask: Retrieve code from categories that have at least one corresponding entry in staff sharing the same type.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = catg.type\n);", "metadata": {"outer_table": "categories", "inner_table": "staff", "outer_alias": "catg", "inner_alias": "empl", "proj_col": "code", "join_col": "type", "correlated_ref": "catg.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04708", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(status, id, code, salary)\n accounts(date, salary, name, level)\nTask: Retrieve salary from products whose type is found in accounts rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "accounts", "outer_alias": "prod", "inner_alias": "acct", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04709", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n accounts (alias: acct)(id, date, level, salary)\n products(type, value, status, salary)\nTask: Find name from accounts where salary exceeds the count of amount from products for the same level.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE salary > (\n SELECT COUNT(amount) FROM products AS prod\n WHERE prod.level = acct.level\n);", "metadata": {"outer_table": "accounts", "inner_table": "products", "outer_alias": "acct", "inner_alias": "prod", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "acct.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04710", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(value, date, status, salary)\n staff(status, date, value, id)\nTask: Find name from customers where a matching record exists in staff with the same id.\nSQL:", "sql": "SELECT name FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.id = cust.id\n);", "metadata": {"outer_table": "customers", "inner_table": "staff", "outer_alias": "cust", "inner_alias": "empl", "proj_col": "name", "join_col": "id", "correlated_ref": "cust.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04711", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(id, level, value, code)\n schedules(name, value, status, level)\nTask: Find name from projects where a matching record exists in schedules with the same code.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "schedules", "outer_alias": "prj", "inner_alias": "schd", "proj_col": "name", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04712", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(salary, status, type, id)\n accounts(type, level, id, value)\nTask: Find id from employees where id appears in accounts entries with matching status.\nSQL:", "sql": "SELECT id FROM employees AS emp\nWHERE id IN (\n SELECT id FROM accounts AS acct\n WHERE acct.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "accounts", "outer_alias": "emp", "inner_alias": "acct", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04713", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(code, amount, type, status)\n staff(level, name, type, status)\nTask: Retrieve amount from managers that have at least one corresponding entry in staff sharing the same code.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "staff", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04714", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n transactions (alias: txn)(status, id, code, salary)\n items(status, salary, value, level)\nTask: Select value from transactions where status exists in items for the same code.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE status IN (\n SELECT status FROM items AS lne\n WHERE lne.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "items", "outer_alias": "txn", "inner_alias": "lne", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04715", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(code, status, name, date)\n departments(id, level, salary, code)\nTask: Find code from shipments where a matching record exists in departments with the same id.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.id = shp.id\n);", "metadata": {"outer_table": "shipments", "inner_table": "departments", "outer_alias": "shp", "inner_alias": "dept", "proj_col": "code", "join_col": "id", "correlated_ref": "shp.id", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04716", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, amount, date, type)\n products(salary, value, type, level)\nTask: Retrieve code from regions with salary above the MAX(value) of products rows sharing the same code.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE salary > (\n SELECT MAX(value) FROM products AS prod\n WHERE prod.code = rgn.code\n);", "metadata": {"outer_table": "regions", "inner_table": "products", "outer_alias": "rgn", "inner_alias": "prod", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "rgn.code", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04717", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(code, amount, date, name)\n employees(amount, level, status, code)\nTask: Find amount from categories where amount exceeds the average value from employees for the same level.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE amount > (\n SELECT AVG(value) FROM employees AS emp\n WHERE emp.level = catg.level\n);", "metadata": {"outer_table": "categories", "inner_table": "employees", "outer_alias": "catg", "inner_alias": "emp", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "catg.level", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04718", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(type, status, code, date)\n shipments(code, status, salary, id)\nTask: Retrieve salary from invoices that have at least one corresponding entry in shipments sharing the same type.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "invoices", "inner_table": "shipments", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "salary", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04719", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(date, type, value, id)\n departments(type, value, date, status)\nTask: Retrieve salary from categories whose id is found in departments rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE id IN (\n SELECT id FROM departments AS dept\n WHERE dept.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "departments", "outer_alias": "catg", "inner_alias": "dept", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04720", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(date, value, salary, amount)\n branches(level, code, id, amount)\nTask: Find amount from categories where a matching record exists in branches with the same status.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.status = catg.status\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "amount", "join_col": "status", "correlated_ref": "catg.status", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04721", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(id, salary, date, type)\n branches(level, value, code, type)\nTask: Find salary from transactions where value exceeds the average amount from branches for the same level.\nSQL:", "sql": "SELECT salary FROM transactions AS txn\nWHERE value > (\n SELECT AVG(amount) FROM branches AS brc\n WHERE brc.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "branches", "outer_alias": "txn", "inner_alias": "brc", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04722", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n projects (alias: prj)(salary, level, id, date)\n shipments(amount, salary, code, value)\nTask: Retrieve value from projects whose status is found in shipments rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM projects AS prj\nWHERE status IN (\n SELECT status FROM shipments AS shp\n WHERE shp.level = prj.level\n);", "metadata": {"outer_table": "projects", "inner_table": "shipments", "outer_alias": "prj", "inner_alias": "shp", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "prj.level", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04723", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n schedules (alias: schd)(value, level, name, type)\n products(level, salary, date, code)\nTask: Retrieve amount from schedules with value above the SUM(amount) of products rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM schedules AS schd\nWHERE value > (\n SELECT SUM(amount) FROM products AS prod\n WHERE prod.code = schd.code\n);", "metadata": {"outer_table": "schedules", "inner_table": "products", "outer_alias": "schd", "inner_alias": "prod", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "schd.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04724", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(type, id, name, level)\n invoices(id, date, amount, type)\nTask: Find id from staff where type appears in invoices entries with matching status.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "invoices", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04725", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n categories (alias: catg)(amount, date, status, code)\n customers(type, date, value, level)\nTask: Retrieve id from categories with value above the AVG(value) of customers rows sharing the same code.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE value > (\n SELECT AVG(value) FROM customers AS cust\n WHERE cust.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "customers", "outer_alias": "catg", "inner_alias": "cust", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04726", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n sales (alias: sale)(type, value, id, salary)\n regions(date, level, code, amount)\nTask: Find id from sales where a matching record exists in regions with the same id.\nSQL:", "sql": "SELECT id FROM sales AS sale\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.id = sale.id\n);", "metadata": {"outer_table": "sales", "inner_table": "regions", "outer_alias": "sale", "inner_alias": "rgn", "proj_col": "id", "join_col": "id", "correlated_ref": "sale.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04727", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n employees (alias: emp)(salary, id, name, amount)\n staff(code, name, level, value)\nTask: Retrieve value from employees with salary above the AVG(amount) of staff rows sharing the same status.\nSQL:", "sql": "SELECT value FROM employees AS emp\nWHERE salary > (\n SELECT AVG(amount) FROM staff AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "employees", "inner_table": "staff", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04728", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(id, type, code, date)\n accounts(salary, date, type, code)\nTask: Find value from managers where id appears in accounts entries with matching id.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE id IN (\n SELECT id FROM accounts AS acct\n WHERE acct.id = mgr.id\n);", "metadata": {"outer_table": "managers", "inner_table": "accounts", "outer_alias": "mgr", "inner_alias": "acct", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04729", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n products (alias: prod)(value, date, name, code)\n regions(status, id, date, salary)\nTask: Find id from products where a matching record exists in regions with the same type.\nSQL:", "sql": "SELECT id FROM products AS prod\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04730", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n projects (alias: prj)(amount, name, type, salary)\n products(code, name, id, amount)\nTask: Retrieve name from projects that have at least one corresponding entry in products sharing the same code.\nSQL:", "sql": "SELECT name FROM projects AS prj\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.code = prj.code\n);", "metadata": {"outer_table": "projects", "inner_table": "products", "outer_alias": "prj", "inner_alias": "prod", "proj_col": "name", "join_col": "code", "correlated_ref": "prj.code", "token_group": "T2", "fan_out": 712}, "token_group": "T2", "id": "cs8_fixed_v4_val_04731", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(level, code, status, salary)\n products(salary, status, type, level)\nTask: Select name from invoices where id exists in products for the same status.\nSQL:", "sql": "SELECT name FROM invoices AS inv\nWHERE id IN (\n SELECT id FROM products AS prod\n WHERE prod.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "products", "outer_alias": "inv", "inner_alias": "prod", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04732", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(value, type, level, date)\n managers(id, status, code, salary)\nTask: Find salary from invoices where a matching record exists in managers with the same code.\nSQL:", "sql": "SELECT salary FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.code = inv.code\n);", "metadata": {"outer_table": "invoices", "inner_table": "managers", "outer_alias": "inv", "inner_alias": "mgr", "proj_col": "salary", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04733", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n accounts (alias: acct)(date, code, name, value)\n schedules(amount, value, salary, type)\nTask: Select code from accounts where status exists in schedules for the same id.\nSQL:", "sql": "SELECT code FROM accounts AS acct\nWHERE status IN (\n SELECT status FROM schedules AS schd\n WHERE schd.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "schedules", "outer_alias": "acct", "inner_alias": "schd", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04734", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(status, type, amount, code)\n managers(type, name, code, level)\nTask: Find id from regions where salary exceeds the total amount from managers for the same id.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE salary > (\n SELECT SUM(amount) FROM managers AS mgr\n WHERE mgr.id = rgn.id\n);", "metadata": {"outer_table": "regions", "inner_table": "managers", "outer_alias": "rgn", "inner_alias": "mgr", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "rgn.id", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04735", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n tasks (alias: tsk)(name, code, type, date)\n orders(salary, name, status, amount)\nTask: Retrieve amount from tasks with salary above the SUM(value) of orders rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM tasks AS tsk\nWHERE salary > (\n SELECT SUM(value) FROM orders AS ord\n WHERE ord.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "orders", "outer_alias": "tsk", "inner_alias": "ord", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04736", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(salary, type, name, code)\n employees(status, level, id, date)\nTask: Retrieve code from orders with value above the AVG(value) of employees rows sharing the same level.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE value > (\n SELECT AVG(value) FROM employees AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "employees", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04737", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(date, salary, value, id)\n schedules(name, value, amount, type)\nTask: Retrieve amount from items that have at least one corresponding entry in schedules sharing the same status.\nSQL:", "sql": "SELECT amount FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.status = lne.status\n);", "metadata": {"outer_table": "items", "inner_table": "schedules", "outer_alias": "lne", "inner_alias": "schd", "proj_col": "amount", "join_col": "status", "correlated_ref": "lne.status", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04738", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(value, type, amount, id)\n invoices(id, date, level, type)\nTask: Find id from items where type appears in invoices entries with matching level.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE type IN (\n SELECT type FROM invoices AS inv\n WHERE inv.level = lne.level\n);", "metadata": {"outer_table": "items", "inner_table": "invoices", "outer_alias": "lne", "inner_alias": "inv", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "lne.level", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04739", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(salary, status, name, id)\n categories(date, id, name, amount)\nTask: Retrieve code from invoices that have at least one corresponding entry in categories sharing the same level.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM categories AS catg\n WHERE catg.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "categories", "outer_alias": "inv", "inner_alias": "catg", "proj_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04740", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(date, name, value, salary)\n products(level, date, type, amount)\nTask: Find value from transactions where salary exceeds the average amount from products for the same status.\nSQL:", "sql": "SELECT value FROM transactions AS txn\nWHERE salary > (\n SELECT AVG(amount) FROM products AS prod\n WHERE prod.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "products", "outer_alias": "txn", "inner_alias": "prod", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04741", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n tasks (alias: tsk)(amount, name, code, type)\n products(type, date, level, code)\nTask: Find id from tasks where a matching record exists in products with the same status.\nSQL:", "sql": "SELECT id FROM tasks AS tsk\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.status = tsk.status\n);", "metadata": {"outer_table": "tasks", "inner_table": "products", "outer_alias": "tsk", "inner_alias": "prod", "proj_col": "id", "join_col": "status", "correlated_ref": "tsk.status", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04742", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n invoices (alias: inv)(amount, id, level, salary)\n requests(id, level, salary, name)\nTask: Find code from invoices where type appears in requests entries with matching status.\nSQL:", "sql": "SELECT code FROM invoices AS inv\nWHERE type IN (\n SELECT type FROM requests AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "requests", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04743", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n departments (alias: dept)(code, amount, date, salary)\n products(id, level, status, salary)\nTask: Retrieve name from departments with value above the MIN(salary) of products rows sharing the same code.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE value > (\n SELECT MIN(salary) FROM products AS prod\n WHERE prod.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "products", "outer_alias": "dept", "inner_alias": "prod", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04744", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(level, date, id, status)\n categories(id, value, code, date)\nTask: Find code from regions where amount exceeds the maximum salary from categories for the same level.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE amount > (\n SELECT MAX(salary) FROM categories AS catg\n WHERE catg.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "categories", "outer_alias": "rgn", "inner_alias": "catg", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04745", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(name, date, level, id)\n managers(id, value, amount, salary)\nTask: Retrieve code from shipments that have at least one corresponding entry in managers sharing the same status.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = shp.status\n);", "metadata": {"outer_table": "shipments", "inner_table": "managers", "outer_alias": "shp", "inner_alias": "mgr", "proj_col": "code", "join_col": "status", "correlated_ref": "shp.status", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04746", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n items (alias: lne)(salary, status, value, code)\n categories(code, type, name, date)\nTask: Retrieve value from items with amount above the SUM(amount) of categories rows sharing the same id.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE amount > (\n SELECT SUM(amount) FROM categories AS catg\n WHERE catg.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "categories", "outer_alias": "lne", "inner_alias": "catg", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04747", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(date, salary, amount, status)\n orders(name, date, value, code)\nTask: Retrieve id from transactions that have at least one corresponding entry in orders sharing the same code.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.code = txn.code\n);", "metadata": {"outer_table": "transactions", "inner_table": "orders", "outer_alias": "txn", "inner_alias": "ord", "proj_col": "id", "join_col": "code", "correlated_ref": "txn.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04748", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(name, id, status, date)\n invoices(id, name, date, salary)\nTask: Find amount from managers where a matching record exists in invoices with the same code.\nSQL:", "sql": "SELECT amount FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM invoices AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "invoices", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04749", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(name, date, level, value)\n schedules(amount, status, level, salary)\nTask: Retrieve id from categories that have at least one corresponding entry in schedules sharing the same code.\nSQL:", "sql": "SELECT id FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "schedules", "outer_alias": "catg", "inner_alias": "schd", "proj_col": "id", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04750", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n tasks (alias: tsk)(amount, type, code, status)\n customers(level, id, value, code)\nTask: Select name from tasks where status exists in customers for the same id.\nSQL:", "sql": "SELECT name FROM tasks AS tsk\nWHERE status IN (\n SELECT status FROM customers AS cust\n WHERE cust.id = tsk.id\n);", "metadata": {"outer_table": "tasks", "inner_table": "customers", "outer_alias": "tsk", "inner_alias": "cust", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "tsk.id", "token_group": "T2", "fan_out": 1586}, "token_group": "T2", "id": "cs8_fixed_v4_val_04751", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(value, date, salary, level)\n departments(date, type, status, salary)\nTask: Select amount from staff where level exists in departments for the same id.\nSQL:", "sql": "SELECT amount FROM staff AS empl\nWHERE level IN (\n SELECT level FROM departments AS dept\n WHERE dept.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "departments", "outer_alias": "empl", "inner_alias": "dept", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04752", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(status, id, level, salary)\n projects(name, id, salary, date)\nTask: Retrieve code from requests that have at least one corresponding entry in projects sharing the same type.\nSQL:", "sql": "SELECT code FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.type = ordr.type\n);", "metadata": {"outer_table": "requests", "inner_table": "projects", "outer_alias": "ordr", "inner_alias": "prj", "proj_col": "code", "join_col": "type", "correlated_ref": "ordr.type", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04753", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(date, salary, status, type)\n schedules(salary, level, status, code)\nTask: Find id from transactions where value exceeds the minimum amount from schedules for the same level.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE value > (\n SELECT MIN(amount) FROM schedules AS schd\n WHERE schd.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "schedules", "outer_alias": "txn", "inner_alias": "schd", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04754", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(name, salary, amount, code)\n projects(id, name, level, salary)\nTask: Retrieve code from branches whose level is found in projects rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM branches AS brc\nWHERE level IN (\n SELECT level FROM projects AS prj\n WHERE prj.status = brc.status\n);", "metadata": {"outer_table": "branches", "inner_table": "projects", "outer_alias": "brc", "inner_alias": "prj", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "brc.status", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04755", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(id, code, date, amount)\n staff(name, amount, level, value)\nTask: Find amount from requests where a matching record exists in staff with the same status.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "staff", "outer_alias": "ordr", "inner_alias": "empl", "proj_col": "amount", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04756", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n sales (alias: sale)(id, date, code, salary)\n staff(type, salary, status, amount)\nTask: Find code from sales where status appears in staff entries with matching status.\nSQL:", "sql": "SELECT code FROM sales AS sale\nWHERE status IN (\n SELECT status FROM staff AS empl\n WHERE empl.status = sale.status\n);", "metadata": {"outer_table": "sales", "inner_table": "staff", "outer_alias": "sale", "inner_alias": "empl", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "sale.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04757", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(amount, level, value, date)\n projects(code, id, type, name)\nTask: Find salary from staff where type appears in projects entries with matching id.\nSQL:", "sql": "SELECT salary FROM staff AS empl\nWHERE type IN (\n SELECT type FROM projects AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "staff", "inner_table": "projects", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04758", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(type, status, value, id)\n schedules(amount, name, code, id)\nTask: Find id from regions where a matching record exists in schedules with the same level.\nSQL:", "sql": "SELECT id FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM schedules AS schd\n WHERE schd.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "schedules", "outer_alias": "rgn", "inner_alias": "schd", "proj_col": "id", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04759", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(level, code, date, status)\n items(name, id, value, amount)\nTask: Find code from categories where code appears in items entries with matching id.\nSQL:", "sql": "SELECT code FROM categories AS catg\nWHERE code IN (\n SELECT code FROM items AS lne\n WHERE lne.id = catg.id\n);", "metadata": {"outer_table": "categories", "inner_table": "items", "outer_alias": "catg", "inner_alias": "lne", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "catg.id", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04760", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(id, name, amount, value)\n employees(id, salary, status, type)\nTask: Retrieve value from requests that have at least one corresponding entry in employees sharing the same code.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "employees", "outer_alias": "ordr", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04761", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n invoices (alias: inv)(type, id, level, name)\n employees(date, code, name, salary)\nTask: Retrieve amount from invoices that have at least one corresponding entry in employees sharing the same level.\nSQL:", "sql": "SELECT amount FROM invoices AS inv\nWHERE EXISTS (\n SELECT 1 FROM employees AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "invoices", "inner_table": "employees", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04762", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(name, salary, status, value)\n staff(salary, date, amount, level)\nTask: Retrieve amount from shipments that have at least one corresponding entry in staff sharing the same type.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM staff AS empl\n WHERE empl.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "staff", "outer_alias": "shp", "inner_alias": "empl", "proj_col": "amount", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04763", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n transactions (alias: txn)(status, code, amount, type)\n managers(type, id, name, salary)\nTask: Retrieve id from transactions with salary above the MIN(amount) of managers rows sharing the same status.\nSQL:", "sql": "SELECT id FROM transactions AS txn\nWHERE salary > (\n SELECT MIN(amount) FROM managers AS mgr\n WHERE mgr.status = txn.status\n);", "metadata": {"outer_table": "transactions", "inner_table": "managers", "outer_alias": "txn", "inner_alias": "mgr", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "txn.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04764", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(id, value, code, level)\n branches(type, date, salary, amount)\nTask: Retrieve value from requests that have at least one corresponding entry in branches sharing the same code.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM branches AS brc\n WHERE brc.code = ordr.code\n);", "metadata": {"outer_table": "requests", "inner_table": "branches", "outer_alias": "ordr", "inner_alias": "brc", "proj_col": "value", "join_col": "code", "correlated_ref": "ordr.code", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04765", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n categories (alias: catg)(value, name, status, amount)\n branches(name, date, salary, code)\nTask: Find amount from categories where code appears in branches entries with matching code.\nSQL:", "sql": "SELECT amount FROM categories AS catg\nWHERE code IN (\n SELECT code FROM branches AS brc\n WHERE brc.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "branches", "outer_alias": "catg", "inner_alias": "brc", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04766", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n transactions (alias: txn)(amount, code, salary, value)\n departments(value, code, date, status)\nTask: Find amount from transactions where a matching record exists in departments with the same level.\nSQL:", "sql": "SELECT amount FROM transactions AS txn\nWHERE EXISTS (\n SELECT 1 FROM departments AS dept\n WHERE dept.level = txn.level\n);", "metadata": {"outer_table": "transactions", "inner_table": "departments", "outer_alias": "txn", "inner_alias": "dept", "proj_col": "amount", "join_col": "level", "correlated_ref": "txn.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04767", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(value, type, name, salary)\n shipments(date, value, type, amount)\nTask: Retrieve name from accounts that have at least one corresponding entry in shipments sharing the same id.\nSQL:", "sql": "SELECT name FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.id = acct.id\n);", "metadata": {"outer_table": "accounts", "inner_table": "shipments", "outer_alias": "acct", "inner_alias": "shp", "proj_col": "name", "join_col": "id", "correlated_ref": "acct.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04768", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n managers (alias: mgr)(value, code, status, salary)\n schedules(type, date, status, amount)\nTask: Retrieve value from managers whose type is found in schedules rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM managers AS mgr\nWHERE type IN (\n SELECT type FROM schedules AS schd\n WHERE schd.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "schedules", "outer_alias": "mgr", "inner_alias": "schd", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04769", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(type, status, salary, code)\n projects(value, code, id, level)\nTask: Retrieve name from branches that have at least one corresponding entry in projects sharing the same code.\nSQL:", "sql": "SELECT name FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "projects", "outer_alias": "brc", "inner_alias": "prj", "proj_col": "name", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04770", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n employees (alias: emp)(date, name, id, salary)\n branches(value, type, amount, level)\nTask: Find salary from employees where id appears in branches entries with matching code.\nSQL:", "sql": "SELECT salary FROM employees AS emp\nWHERE id IN (\n SELECT id FROM branches AS brc\n WHERE brc.code = emp.code\n);", "metadata": {"outer_table": "employees", "inner_table": "branches", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04771", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(status, salary, name, amount)\n tasks(value, type, name, status)\nTask: Select code from products where status exists in tasks for the same code.\nSQL:", "sql": "SELECT code FROM products AS prod\nWHERE status IN (\n SELECT status FROM tasks AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "tasks", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04772", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n orders (alias: ord)(value, amount, name, code)\n tasks(type, salary, status, date)\nTask: Find amount from orders where id appears in tasks entries with matching level.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE id IN (\n SELECT id FROM tasks AS tsk\n WHERE tsk.level = ord.level\n);", "metadata": {"outer_table": "orders", "inner_table": "tasks", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04773", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n requests (alias: ordr)(salary, id, type, status)\n transactions(salary, id, level, value)\nTask: Retrieve amount from requests with salary above the AVG(value) of transactions rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM requests AS ordr\nWHERE salary > (\n SELECT AVG(value) FROM transactions AS txn\n WHERE txn.id = ordr.id\n);", "metadata": {"outer_table": "requests", "inner_table": "transactions", "outer_alias": "ordr", "inner_alias": "txn", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ordr.id", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04774", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n customers (alias: cust)(value, name, level, salary)\n regions(salary, status, name, amount)\nTask: Find id from customers where a matching record exists in regions with the same code.\nSQL:", "sql": "SELECT id FROM customers AS cust\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.code = cust.code\n);", "metadata": {"outer_table": "customers", "inner_table": "regions", "outer_alias": "cust", "inner_alias": "rgn", "proj_col": "id", "join_col": "code", "correlated_ref": "cust.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04775", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(date, id, value, code)\n projects(value, type, level, status)\nTask: Retrieve amount from products whose code is found in projects rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM products AS prod\nWHERE code IN (\n SELECT code FROM projects AS prj\n WHERE prj.level = prod.level\n);", "metadata": {"outer_table": "products", "inner_table": "projects", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04776", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n managers (alias: mgr)(level, type, salary, amount)\n tasks(type, amount, date, id)\nTask: Retrieve salary from managers that have at least one corresponding entry in tasks sharing the same code.\nSQL:", "sql": "SELECT salary FROM managers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM tasks AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "managers", "inner_table": "tasks", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "salary", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04777", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(date, amount, salary, value)\n accounts(date, type, name, amount)\nTask: Select id from items where type exists in accounts for the same id.\nSQL:", "sql": "SELECT id FROM items AS lne\nWHERE type IN (\n SELECT type FROM accounts AS acct\n WHERE acct.id = lne.id\n);", "metadata": {"outer_table": "items", "inner_table": "accounts", "outer_alias": "lne", "inner_alias": "acct", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "lne.id", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04778", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n schedules (alias: schd)(id, salary, value, level)\n products(status, date, value, code)\nTask: Retrieve value from schedules that have at least one corresponding entry in products sharing the same type.\nSQL:", "sql": "SELECT value FROM schedules AS schd\nWHERE EXISTS (\n SELECT 1 FROM products AS prod\n WHERE prod.type = schd.type\n);", "metadata": {"outer_table": "schedules", "inner_table": "products", "outer_alias": "schd", "inner_alias": "prod", "proj_col": "value", "join_col": "type", "correlated_ref": "schd.type", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04779", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n requests (alias: ordr)(level, code, status, value)\n managers(code, type, status, value)\nTask: Retrieve value from requests that have at least one corresponding entry in managers sharing the same status.\nSQL:", "sql": "SELECT value FROM requests AS ordr\nWHERE EXISTS (\n SELECT 1 FROM managers AS mgr\n WHERE mgr.status = ordr.status\n);", "metadata": {"outer_table": "requests", "inner_table": "managers", "outer_alias": "ordr", "inner_alias": "mgr", "proj_col": "value", "join_col": "status", "correlated_ref": "ordr.status", "token_group": "T2", "fan_out": 95}, "token_group": "T2", "id": "cs8_fixed_v4_val_04780", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n employees (alias: emp)(code, status, level, value)\n shipments(status, name, date, amount)\nTask: Find code from employees where a matching record exists in shipments with the same type.\nSQL:", "sql": "SELECT code FROM employees AS emp\nWHERE EXISTS (\n SELECT 1 FROM shipments AS shp\n WHERE shp.type = emp.type\n);", "metadata": {"outer_table": "employees", "inner_table": "shipments", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04781", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n staff (alias: empl)(salary, level, code, id)\n regions(id, amount, salary, code)\nTask: Select id from staff where code exists in regions for the same status.\nSQL:", "sql": "SELECT id FROM staff AS empl\nWHERE code IN (\n SELECT code FROM regions AS rgn\n WHERE rgn.status = empl.status\n);", "metadata": {"outer_table": "staff", "inner_table": "regions", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 110}, "token_group": "T2", "id": "cs8_fixed_v4_val_04782", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n products (alias: prod)(id, amount, name, code)\n projects(level, type, date, code)\nTask: Find value from products where salary exceeds the maximum salary from projects for the same status.\nSQL:", "sql": "SELECT value FROM products AS prod\nWHERE salary > (\n SELECT MAX(salary) FROM projects AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "products", "inner_table": "projects", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04783", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n departments (alias: dept)(date, salary, value, status)\n transactions(name, level, date, type)\nTask: Select name from departments where id exists in transactions for the same code.\nSQL:", "sql": "SELECT name FROM departments AS dept\nWHERE id IN (\n SELECT id FROM transactions AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "departments", "inner_table": "transactions", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04784", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n accounts (alias: acct)(status, name, salary, date)\n sales(status, type, salary, value)\nTask: Find salary from accounts where a matching record exists in sales with the same status.\nSQL:", "sql": "SELECT salary FROM accounts AS acct\nWHERE EXISTS (\n SELECT 1 FROM sales AS sale\n WHERE sale.status = acct.status\n);", "metadata": {"outer_table": "accounts", "inner_table": "sales", "outer_alias": "acct", "inner_alias": "sale", "proj_col": "salary", "join_col": "status", "correlated_ref": "acct.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04785", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n categories (alias: catg)(date, salary, status, level)\n regions(salary, type, date, id)\nTask: Find salary from categories where a matching record exists in regions with the same code.\nSQL:", "sql": "SELECT salary FROM categories AS catg\nWHERE EXISTS (\n SELECT 1 FROM regions AS rgn\n WHERE rgn.code = catg.code\n);", "metadata": {"outer_table": "categories", "inner_table": "regions", "outer_alias": "catg", "inner_alias": "rgn", "proj_col": "salary", "join_col": "code", "correlated_ref": "catg.code", "token_group": "T2", "fan_out": 36}, "token_group": "T2", "id": "cs8_fixed_v4_val_04786", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(type, status, code, amount)\n accounts(amount, id, date, name)\nTask: Find amount from orders where value exceeds the average salary from accounts for the same code.\nSQL:", "sql": "SELECT amount FROM orders AS ord\nWHERE value > (\n SELECT AVG(salary) FROM accounts AS acct\n WHERE acct.code = ord.code\n);", "metadata": {"outer_table": "orders", "inner_table": "accounts", "outer_alias": "ord", "inner_alias": "acct", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04787", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n regions (alias: rgn)(value, salary, status, type)\n items(status, date, salary, amount)\nTask: Find code from regions where value exceeds the total salary from items for the same type.\nSQL:", "sql": "SELECT code FROM regions AS rgn\nWHERE value > (\n SELECT SUM(salary) FROM items AS lne\n WHERE lne.type = rgn.type\n);", "metadata": {"outer_table": "regions", "inner_table": "items", "outer_alias": "rgn", "inner_alias": "lne", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "rgn.type", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04788", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n orders (alias: ord)(value, type, status, name)\n projects(type, value, code, amount)\nTask: Retrieve code from orders with amount above the MIN(salary) of projects rows sharing the same id.\nSQL:", "sql": "SELECT code FROM orders AS ord\nWHERE amount > (\n SELECT MIN(salary) FROM projects AS prj\n WHERE prj.id = ord.id\n);", "metadata": {"outer_table": "orders", "inner_table": "projects", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04789", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n items (alias: lne)(level, status, salary, date)\n orders(type, id, amount, code)\nTask: Retrieve value from items that have at least one corresponding entry in orders sharing the same type.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE EXISTS (\n SELECT 1 FROM orders AS ord\n WHERE ord.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "orders", "outer_alias": "lne", "inner_alias": "ord", "proj_col": "value", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04790", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n items (alias: lne)(amount, level, status, date)\n products(amount, type, salary, code)\nTask: Find value from items where code appears in products entries with matching type.\nSQL:", "sql": "SELECT value FROM items AS lne\nWHERE code IN (\n SELECT code FROM products AS prod\n WHERE prod.type = lne.type\n);", "metadata": {"outer_table": "items", "inner_table": "products", "outer_alias": "lne", "inner_alias": "prod", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "lne.type", "token_group": "T2", "fan_out": 883}, "token_group": "T2", "id": "cs8_fixed_v4_val_04791", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n branches (alias: brc)(amount, code, date, level)\n requests(status, amount, date, type)\nTask: Select salary from branches where code exists in requests for the same code.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE code IN (\n SELECT code FROM requests AS ordr\n WHERE ordr.code = brc.code\n);", "metadata": {"outer_table": "branches", "inner_table": "requests", "outer_alias": "brc", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "brc.code", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04792", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n invoices (alias: inv)(id, amount, date, type)\n sales(code, value, id, type)\nTask: Retrieve id from invoices with amount above the SUM(salary) of sales rows sharing the same status.\nSQL:", "sql": "SELECT id FROM invoices AS inv\nWHERE amount > (\n SELECT SUM(salary) FROM sales AS sale\n WHERE sale.status = inv.status\n);", "metadata": {"outer_table": "invoices", "inner_table": "sales", "outer_alias": "inv", "inner_alias": "sale", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04793", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(type, value, level, id)\n projects(amount, salary, type, date)\nTask: Find value from shipments where value exceeds the total salary from projects for the same type.\nSQL:", "sql": "SELECT value FROM shipments AS shp\nWHERE value > (\n SELECT SUM(salary) FROM projects AS prj\n WHERE prj.type = shp.type\n);", "metadata": {"outer_table": "shipments", "inner_table": "projects", "outer_alias": "shp", "inner_alias": "prj", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "shp.type", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04794", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n branches (alias: brc)(level, name, salary, value)\n projects(code, amount, id, status)\nTask: Retrieve salary from branches that have at least one corresponding entry in projects sharing the same id.\nSQL:", "sql": "SELECT salary FROM branches AS brc\nWHERE EXISTS (\n SELECT 1 FROM projects AS prj\n WHERE prj.id = brc.id\n);", "metadata": {"outer_table": "branches", "inner_table": "projects", "outer_alias": "brc", "inner_alias": "prj", "proj_col": "salary", "join_col": "id", "correlated_ref": "brc.id", "token_group": "T2", "fan_out": 1329}, "token_group": "T2", "id": "cs8_fixed_v4_val_04795", "split": "val"} +{"variant": "v1", "prompt": "Schema:\n products (alias: prod)(salary, id, status, amount)\n regions(date, name, id, type)\nTask: Select salary from products where level exists in regions for the same code.\nSQL:", "sql": "SELECT salary FROM products AS prod\nWHERE level IN (\n SELECT level FROM regions AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "products", "inner_table": "regions", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}, "token_group": "T1", "id": "cs8_fixed_v4_val_04796", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n regions (alias: rgn)(value, status, code, salary)\n customers(amount, salary, code, value)\nTask: Find salary from regions where a matching record exists in customers with the same level.\nSQL:", "sql": "SELECT salary FROM regions AS rgn\nWHERE EXISTS (\n SELECT 1 FROM customers AS cust\n WHERE cust.level = rgn.level\n);", "metadata": {"outer_table": "regions", "inner_table": "customers", "outer_alias": "rgn", "inner_alias": "cust", "proj_col": "salary", "join_col": "level", "correlated_ref": "rgn.level", "token_group": "T2", "fan_out": 1534}, "token_group": "T2", "id": "cs8_fixed_v4_val_04797", "split": "val"} +{"variant": "v3", "prompt": "Schema:\n shipments (alias: shp)(amount, status, name, date)\n tasks(id, salary, amount, value)\nTask: Find amount from shipments where salary exceeds the count of amount from tasks for the same code.\nSQL:", "sql": "SELECT amount FROM shipments AS shp\nWHERE salary > (\n SELECT COUNT(amount) FROM tasks AS tsk\n WHERE tsk.code = shp.code\n);", "metadata": {"outer_table": "shipments", "inner_table": "tasks", "outer_alias": "shp", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "shp.code", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04798", "split": "val"} +{"variant": "v2", "prompt": "Schema:\n shipments (alias: shp)(date, status, salary, type)\n requests(code, level, salary, status)\nTask: Retrieve code from shipments that have at least one corresponding entry in requests sharing the same level.\nSQL:", "sql": "SELECT code FROM shipments AS shp\nWHERE EXISTS (\n SELECT 1 FROM requests AS ordr\n WHERE ordr.level = shp.level\n);", "metadata": {"outer_table": "shipments", "inner_table": "requests", "outer_alias": "shp", "inner_alias": "ordr", "proj_col": "code", "join_col": "level", "correlated_ref": "shp.level", "token_group": "T2", "fan_out": 30}, "token_group": "T2", "id": "cs8_fixed_v4_val_04799", "split": "val"}